getSessionId static method

Future<String?> getSessionId()

Implementation

static Future<String?> getSessionId() async {
  try {
    return await _channel.invokeMethod<String?>('getSessionId');
  } on PlatformException catch (e) {
    // ignore: avoid_print
    print('Failed to get session ID: ${e.message}');
    return null;
  }
}