setSessionData method
Implementation
@override
Future<bool> setSessionData(Map<String, dynamic> sessionData) async {
try {
return await methodChannel.invokeMethod('setSessionData', sessionData) ??
false;
} on PlatformException catch (e) {
// Handle errors from the native side
throw Exception("Error: ${e.code}, ${e.message}");
}
}