AlertLocation class
A location fix produced by the plugin's native GPS capture (Approach A) and
forwarded on the location event channel so the UI can show the current
position and speed.
Constructors
- AlertLocation({required double latitude, required double longitude, required double speedKmh, required double bearing, double? accuracy, int? timestamp})
-
const
-
AlertLocation.fromJson(Map<
String, dynamic> json) -
factory
Properties
- accuracy → double?
-
Horizontal accuracy in meters, if available.
final
- bearing → double
-
Heading in degrees (0–360).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- latitude → double
-
final
- longitude → double
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- speedKmh → double
-
Ground speed in km/h.
final
- timestamp → int?
-
Fix time in milliseconds since epoch, if available.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited