start method
Starts the Mapxus positioning service.
Returns a MapxusMethodResponse with success or error message.
Implementation
@override
Future<MapxusMethodResponse> start() async {
try {
final result = await _channel.invokeMethod<Map<dynamic, dynamic>>('start');
return MapxusMethodResponse.fromMap({
"success": result?['success'] ?? false,
"message": result?['message'] ?? 'Unknown error'
});
} catch (e) {
return MapxusMethodResponse.fromMap({
"success": false,
"message": e.toString(),
});
}
}