TrackingStatus class
Snapshot of tracking health, emitted when it changes.
- Annotations
Constructors
- TrackingStatus({TrackingPhase phase = TrackingPhase.idle, RouteStatus routeStatus = RouteStatus.noRoute, Duration? freshness, double confidence = 0, LocationSample? lastAuthoritativeSample, Duration renderDelay = Duration.zero, TrackingDiagnostics diagnostics = const TrackingDiagnostics()})
-
Creates a status.
const
Properties
- confidence → double
-
Indicative 0..1 confidence (freshness × accuracy × match).
final
- diagnostics → TrackingDiagnostics
-
Counters.
final
- freshness → Duration?
-
Age of the newest authoritative sample (clock-offset corrected).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isStale → bool
-
Whether the application should show a "location delayed" indicator.
no setter
- lastAuthoritativeSample → LocationSample?
-
The newest real sample. Never a predicted position.
final
- phase → TrackingPhase
-
Lifecycle / freshness phase.
final
- renderDelay → Duration
-
Current visual latency.
final
- routeStatus → RouteStatus
-
Relationship to the route.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
differsFrom(
TrackingStatus o) → bool - Returns true when visible fields differ (freshness compared at 1 s granularity to avoid per-frame notifications).
-
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