pause method
Pauses the positioning service temporarily.
Useful when the app moves to the background or needs to conserve resources.
Implementation
@override
Future<MapxusMethodResponse> pause() async {
try {
final result = await _channel.invokeMethod<Map<dynamic, dynamic>>('pause');
return MapxusMethodResponse.fromMap({
"success": result?['success'] ?? false,
"message": result?['message'] ?? 'Unknown error'
});
} catch (e) {
return MapxusMethodResponse.fromMap({
"success": false,
"message": e.toString(),
});
}
}