AngularUnit class final
Defines an angular unit of measurement.
The angular unit class is derived from the unit class.
Constructors
- AngularUnit({required AngularUnitId unitId})
-
Creates a unit given its known id.
factory
Properties
- abbreviation → String
-
The abbreviation of the unit.
no setterinherited
- angularUnitId → AngularUnitId
-
The AngularUnitId of the given angular 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 AngularUnit fromUnit, required double angle}) → double - Converts a value in another UOM into this UOM.
-
convertTo(
{required AngularUnit toUnit, required double angle}) → double - Converts a value in this UOM into another UOM.
-
fromRadians(
double radians) → double - Converts a radian value to this UOM.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toRadians(
{required double angle}) → double - Converts a value in this UOM to radians.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited