isAlertActive method

Future<bool> isAlertActive()

Returns true if speed-alert monitoring is currently active.

Implementation

Future<bool> isAlertActive() async {
  try {
    final result = await _method.invokeMethod<bool>('isSpeedAlertActive');
    return result ?? false;
  } on PlatformException {
    rethrow;
  }
}