setSession method

  1. @override
Future<bool> setSession(
  1. String session
)
override

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}";
  }
}