StaticPosition class abstract
- Available extensions
- Annotations
-
- @freezed
Constructors
- StaticPosition({double? latitude, double? longitude, double? altitude})
-
constfactory
-
StaticPosition.fromJson(Map<
String, dynamic> json) -
factory
Properties
- altitude → double?
-
altitudeis the altitude of the asset.no setterinherited -
copyWith
→ $StaticPositionCopyWith<
StaticPosition> -
Create a copy of StaticPosition
with the given fields replaced by the non-null parameter values.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- latitude → double?
-
latitudeis the latitude of the asset.no setterinherited - longitude → double?
-
longitudeis the longitude of the asset.no setterinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- toLatLng → LatLng?
-
no setter
Methods
-
map<
TResult extends Object?> (TResult $default(_StaticPosition value)) → TResult -
Available on StaticPosition, provided by the StaticPositionPatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_StaticPosition value)?) → TResult? -
Available on StaticPosition, provided by the StaticPositionPatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> (TResult $default(_StaticPosition value)?, {required TResult orElse()}) → TResult -
Available on StaticPosition, provided by the StaticPositionPatterns extension
A variant ofmapthat fallback to returningorElse. -
maybeWhen<
TResult extends Object?> (TResult $default(double? latitude, double? longitude, double? altitude)?, {required TResult orElse()}) → TResult -
Available on StaticPosition, provided by the StaticPositionPatterns extension
A variant ofwhenthat fallback to anorElsecallback. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this StaticPosition to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
TResult extends Object?> (TResult $default(double? latitude, double? longitude, double? altitude)) → TResult -
Available on StaticPosition, provided by the StaticPositionPatterns extension
Aswitch-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(double? latitude, double? longitude, double? altitude)?) → TResult? -
Available on StaticPosition, provided by the StaticPositionPatterns extension
A variant ofwhenthat fallback to returningnull
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited