getSession method

  1. @override
Future<Session?> getSession(
  1. String sessionId
)
override

Implementation

@override
Future<Session?> getSession(String sessionId) async {
  final File file = getFile(sessionId);
  try {
    if (await file.exists()) {
      return await sessionFromFile(file);
    }
  } catch (e, s) {
    print('$e\n$s');
  }
  return null;
}