flutter_live_location library

The flutter_live_location plugin.

This plugin provides real-time location tracking with configurable distance filters and time intervals, supporting both foreground and background tracking on Android and iOS.

Classes

LiveLocation
Main API for the live location tracking plugin.
LocationConfig
Immutable configuration for location tracking.
LocationUpdate
Represents a single location update with coordinates and metadata.

Enums

LocationAccuracy
Location accuracy levels for GPS updates.

Exceptions / Errors

LocationAlreadyInitializedException
Thrown when attempting to initialize the plugin multiple times.
LocationConfigurationException
Thrown when invalid configuration is provided.
LocationDisposedException
Thrown when an operation is attempted after disposal.
LocationException
Base exception for all live location plugin errors.
LocationInitializationException
Thrown when plugin initialization fails.
LocationInitTimeoutException
Thrown when the location provider does not become ready within the timeout.
LocationNotInitializedException
Thrown when an operation is attempted before initialization.
LocationPermissionException
Thrown when required location permission is not granted.
LocationPlatformException
Thrown when platform channel communication fails.
LocationPlatformNotSupportedException
Thrown when an unsupported operation is requested on the current platform.
LocationServiceDisabledException
Thrown when location services are not available or disabled on the device.