currentSession method

  1. @override
Future<SPSession?> currentSession()
override

Implementation

@override
Future<SPSession?> currentSession() {
  return methodChannel.invokeMethod('currentSession').then(
        (value) => value != null
            ? SPSession.fromMap(
                Map<String, dynamic>.from(value),
              )
            : null,
      );
}