TrackingConfig class
Configuration for location tracking.
Constructors
- TrackingConfig({int intervalMs = 5000, double distanceFilter = 10.0, LocationAccuracy accuracy = LocationAccuracy.high, TrackingMode trackingMode = TrackingMode.balanced, bool showNotification = true, String notificationTitle = 'Location Tracking Active', String notificationBody = 'Your location is being tracked in the background', String notificationChannelId = 'live_location_tracker_channel', String? notificationIconName, bool enableAutoPause = true})
-
const
Properties
- accuracy → LocationAccuracy
-
Desired location accuracy.
final
- distanceFilter → double
-
Minimum distance change (in meters) to trigger an update.
final
- enableAutoPause → bool
-
Whether to enable auto-pause when stationary.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- intervalMs → int
-
Update interval in milliseconds.
final
- notificationBody → String
-
Body text for the foreground notification (Android).
final
- notificationChannelId → String
-
Notification channel ID (Android).
final
- notificationIconName → String?
-
Notification icon name (Android drawable resource name).
final
- notificationTitle → String
-
Title for the foreground notification (Android).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showNotification → bool
-
Whether to show a foreground notification (Android).
final
- trackingMode → TrackingMode
-
Tracking mode (affects battery usage).
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> - Converts this config to a map for platform channel serialization.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited