AreaUnit class final

Defines an area unit of measurement.

The area unit class is derived from the unit class.

Inheritance

Constructors

AreaUnit({required AreaUnitId unitId})
Creates a unit given its known id.
factory
AreaUnit.fromLinearUnit(LinearUnit linearUnit)
Creates an area unit given a linear unit.
factory

Properties

abbreviation String
The abbreviation of the unit.
no setterinherited
areaUnitId AreaUnitId
The AreaUnitId of the given Area unit.
no setter
displayName String
The display name of the unit.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
name String
The name of the unit.
no setterinherited
pluralDisplayName String
The display name of the unit.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
wkid int
The well-known ID for the unit, or 0 for a custom unit.
no setterinherited

Methods

convertFrom({required AreaUnit fromUnit, required double area}) double
Converts a value in another UOM into this UOM.
convertTo({required AreaUnit toUnit, required double area}) double
Converts a value in this UOM into another UOM.
fromSquareMeters(double area) double
Converts a square meter value to this UOM.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toSquareMeters({required double area}) double
Converts a value in this UOM to square meters.
toString() String
A string representation of this object.
inherited

Operators

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