to method

dynamic to(
  1. EnergyUnit unit
)

Implementation

to(EnergyUnit unit) => value.to(unit);