getByPeriod static method

List<ElementData> getByPeriod(
  1. int period
)

Gets all elements in a specific period

Implementation

static List<ElementData> getByPeriod(int period) {
  return periodicTable.values.where((element) => element.period == period).toList();
}