setSession method
Implementation
@override
Future<bool> setSession(String session) async {
try {
final bool result =
await methodChannel.invokeMethod('setSession', {'session': session});
return result;
} on PlatformException catch (e) {
throw "Error setting session: ${e.message}";
}
}