insideAreas property
Monitored areas containing the current reference position.
For this list to be non-empty the device must be inside at least one monitored area and must move or change position within that area.
Returns
List<AlarmMonitoredArea>: List of areas the device is currently inside.
See also:
- monitorArea - Add a geographic area to monitor.
- unmonitorArea - Remove a geographic area from monitoring.
Implementation
List<AlarmMonitoredArea> get insideAreas {
final OperationResult result = objectMethod(
_pointerId,
'AlarmService',
'getInsideAreas',
);
final List<dynamic> res = result['result'];
return res
.map((final dynamic item) => AlarmMonitoredArea.fromJson(item))
.toList();
}