chemical_elements 1.0.0 chemical_elements: ^1.0.0 copied to clipboard
An array/List with all of the chemical elements and some of its related info
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:elements/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}");