Chemical Elements
Hecho en 🇵🇷 por Radamés J. Valentín Reyes
What it is
An array/List with all of the chemical elements and some of its related info
Import
import 'package:chemical_elements/chemical_elements.dart';
Where are all elements stored?
The elements array
elements[itemIndex];
Example
Get Info related to Nitrogen
ChemicalElement nitrogen = elements[elements.indexWhere((element) => element.chemicalSymbol == "N")];
print(nitrogen.elementName);
print("Atomic number: ${nitrogen.atomicNumber}");
print("Atomic mass: ${nitrogen.atomicMass}");