Volume.fromCubicYards constructor

Volume.fromCubicYards(
  1. Rational cubicYards
)

Creates a Volume representing the specified number of cubicYards.

Implementation

factory Volume.fromCubicYards(Rational cubicYards) =>
    Volume.fromUnits(VolumeUnit.cubicYard, cubicYards);