speedSectionAlarms property
Active speed section control alarms.
Each SpeedSectionAlarm describes an average-speed enforcement zone the vehicle is currently inside, with the live remaining distance and running average speed.
Requires enableSpeedSectionAlarm to be set, and is only produced while navigating with a route.
Returns
List<SpeedSectionAlarm>: The active section-control alarms. Empty when no section is active.
See also:
- AlarmListener.registerOnEnterSpeedSectionAlarms - Notified when a section is entered.
- AlarmListener.registerOnTravelSpeedSectionAlarms - Notified as progress is made inside a section.
Implementation
List<SpeedSectionAlarm> get speedSectionAlarms {
final OperationResult result = objectMethod(
_pointerId,
'AlarmService',
'getSpeedSectionAlarms',
);
final List<dynamic> json = result['result'];
return json.map((dynamic e) => SpeedSectionAlarm.fromJson(e)).toList();
}