Volume.fromLiters constructor

Volume.fromLiters(
  1. Rational liters
)

Creates a Volume representing the specified number of liters.

Implementation

factory Volume.fromLiters(Rational liters) =>
    Volume.fromUnits(VolumeUnit.liter, liters);