FlutterLocationPlusPlatform class abstract

Abstract platform interface for flutter_location_plus.

Extend this class to add support for additional platforms. The default implementation uses a MethodChannel (see MethodChannelFlutterLocationPlus).

Inheritance
  • Object
  • PlatformInterface
  • FlutterLocationPlusPlatform
Implementers

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

getBestLocation() → Future<String?>
Returns the most accurate last-known fix across all enabled providers.
getGpsLocation() → Future<String?>
Returns the last-known fix from the GPS provider.
getNetworkLocation() → Future<String?>
Returns the last-known fix from the Network provider.
getPassiveLocation() → Future<String?>
Returns the last-known fix from the Passive provider.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
startLiveLocation({String provider = 'best', int intervalMs = 2000, double distanceMeters = 0}) → Future<void>
Starts continuous location updates on the native side. Emits results via the liveLocation method channel callback.
stopLiveLocation() → Future<void>
Stops the active native location listener and frees resources.
toString() → String
A string representation of this object.
inherited

Operators

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

Static Properties

instance ↔ FlutterLocationPlusPlatform
The current platform implementation. Defaults to MethodChannelFlutterLocationPlus.
getter/setter pair