Future<bool> isEnabled() async { bool? result = await _channel.invokeMethod('geofence.isEnabled'); if (result == null) { throw NullThrownError(); } return result; }