AJLocation class
Constructors
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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
currentAuthorizationStatus
→ Future<
AuthorizationStatus?> -
Get current authorization status.
no setter
-
onLocationChange
↔ Stream<
Location> -
Stream that will return new location everytime it changes. You can listen to this stream to get the latest
Location
, also works in background mode.getter/setter pair
Static Methods
-
getCurrentLocation(
) → Future< Location> -
requestAuthorization(
{AuthorizationType type = AuthorizationType.always}) → Future< AuthorizationStatus?> -
Request authorization for the location request. Will return AuthorizationStatus if the location fetching is
allowed
ordeclined
. -
setConfiguartion(
{AccuracyType accuracy = AccuracyType.bestForNavigation, required double distanceFilter}) → dynamic -
startUpdatingLocation(
) → void - Start updating location.
-
stopUpdatingLocation(
) → void - Stop updating location.