energy library
Provides type-safe units for Energy.
Import this file to use Energy quantities and their extensions on num
(like 500.J
, 250.kcal
, 1.2.kWh
).
Classes
Enums
- EnergyUnit
- Represents units of energy.
Extensions
- EnergyCreation on num
- Provides convenient factory methods for creating Energy instances from num using getter properties named after common unit symbols or names.
- EnergyValueGetters on Energy
- Provides convenient access to Energy values in specific units using getter properties.