Volume.fromImperialGallons constructor

Volume.fromImperialGallons(
  1. Rational imperialGallons
)

Creates a Volume representing the specified number of imperialGallons.

Implementation

factory Volume.fromImperialGallons(Rational imperialGallons) =>
    Volume.fromUnits(VolumeUnit.imperialGallon, imperialGallons);