stop method
Stops the Mapxus positioning service completely.
Once stopped, the service must be re-initialized before restarting.
Implementation
@override
Future<MapxusMethodResponse> stop() async {
try {
final result = await _channel.invokeMethod<Map<dynamic, dynamic>>('stop');
return MapxusMethodResponse.fromMap({
"success": result?['success'] ?? false,
"message": result?['message'] ?? 'Unknown error'
});
} catch (e) {
return MapxusMethodResponse.fromMap({
"success": false,
"message": e.toString(),
});
}
}