cancelMultiSession method
Cancels the active multi-session USSD session
Returns a map with the operation result.
Implementation
@override
Future<Map<String, dynamic>> cancelMultiSession() async {
try {
final result = await methodChannel.invokeMethod<Map<Object?, Object?>>(
'cancelMultiSession',
);
return Map<String, dynamic>.from(result ?? {});
} on PlatformException catch (e) {
debugPrint('Error canceling multi-session: ${e.message}');
return {'success': false, 'error': e.message};
}
}