Volume class

Inheritance

Constructors

Volume({int significantFigures = 10, bool removeTrailingZeros = true, dynamic name})
Class for volume conversions, e.g. if you want to convert 1 liter in US Gallons:

Properties

australianTablespoons → Unit
no setter
cubicCentimeters → Unit
no setter
cubicFeet → Unit
no setter
cubicInches → Unit
no setter
cubicMeters → Unit
no setter
cubicMillimeters → Unit
no setter
cups → Unit
no setter
hashCode → int
The hash code for this object.
no setterinherited
imperialFluidOunces → Unit
no setter
imperialGallons → Unit
no setter
imperialGill → Unit
no setter
imperialPints → Unit
no setter
liters → Unit
no setter
mapSymbols → Map<VOLUME, String>
final
milliliters → Unit
no setter
name ↔ dynamic
getter/setter pairinherited
removeTrailingZeros ↔ bool
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
significantFigures ↔ int
getter/setter pair
size ↔ int
latefinalinherited
tablespoonsUs → Unit
no setter
unitConversion ↔ Node
getter/setter pairinherited
unitList ↔ List<Unit>
getter/setter pairinherited
usFluidOunces → Unit
no setter
usGallons → Unit
no setter
usGill → Unit
no setter
usPints → Unit
no setter

Methods

convert(VOLUME name, double? value) → void
Converts a unit with a specific name (e.g. VOLUME.cubic_feet) and value to all other units
override
getAll() → List<Unit>
Returns all the units converted with prefixes
inherited
getUnit(dynamic name) → Unit
Returns the Unit with the corresponding name
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited