Location class

Constructors

Location()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

describePosition(Position position) → Future<String>
Describes a position for the attendance record.
ensureLocation([BuildContext? context]) → Future<bool>
Whether location services and permission are usable.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readPosition() → Future<Position?>
The current position, or null when it cannot be read.
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

isRecent(Position position, {DateTime? now}) → bool
isRetryable(int? statusCode) → bool

Constants

lastKnownMaxAge → const Duration
positionTimeout → const Duration
preciseTimeout → const Duration