TraccarConfigs class

Configuration settings for the Traccar tracking service.

This class encapsulates all the parameters required to initialize and configure the Traccar service, such as server URL, device ID, accuracy level, and various optional settings.

Constructors

TraccarConfigs({required String deviceId, required String serverUrl, int? interval = 10000, int? distance = 0, int? angle = 0, AccuracyLevel accuracy = AccuracyLevel.high, bool? offlineBuffering = true, bool? wakelock = true, String? notificationIcon})
Creates a TraccarConfigs object with the specified parameters.

Properties

accuracy AccuracyLevel
Specifies the desired accuracy level for location tracking.
final
angle int?
The angle threshold (in degrees) for triggering location updates based on direction changes.
final
deviceId String
Unique identifier for the device being tracked.
final
distance int?
The minimum distance (in meters) to trigger a location update.
final
hashCode int
The hash code for this object.
no setterinherited
interval int?
The interval (in milliseconds) for sending location updates.
final
notificationIcon String?
The name of the custom notification icon to be used for the tracking service.
final
offlineBuffering bool?
Enables or disables offline buffering of location updates.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serverUrl String
The URL of the Traccar server.
final
wakelock bool?
Specifies whether to acquire a wake lock to keep the device awake while tracking.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
Converts the configuration object into a map representation.
toString() String
A string representation of this object.
inherited

Operators

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