Direction class
Basic structure for directions attributes.
Constructors
- Direction(String? code)
- Direction.fromCardinal(String code)
-
Factory constructor to create a Direction object from a cardinal
direction code.
Throws:
AssertionError: Raised if code is not in compassDirs keys.
factory
Properties
- cardinal → String?
-
Get the cardinal direction associated to the wind direction, e.g. "NW" (north west).
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- inDegrees → double?
-
Get the direction in degrees.
no setter
- inGradians → double?
-
Get the direction in gradians.
no setter
- inRadians → double?
-
Get the direction in radians.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → double?
-
Get the value as a float.
no setterinherited
- variable → bool
-
Get True if direction is
VRBin the report. False otherwise.no setter
Methods
-
asMap(
) → Map< String, Object?> -
Returns the numeric value data as a map like
Map<String, dynamic>.override -
converted(
{double? conversionDouble, double conversionFunction(double)?}) → double? -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJSON(
) → String -
Returns the object data as a string in JSON format.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited