Volume.fromUsLiquidGallons constructor

Volume.fromUsLiquidGallons(
  1. Rational usLiquidGallons
)

Creates a Volume representing the specified number of usLiquidGallons.

Implementation

factory Volume.fromUsLiquidGallons(Rational usLiquidGallons) =>
    Volume.fromUnits(VolumeUnit.usLiquidGallon, usLiquidGallons);