getMostRecentSession method

Future<String?> getMostRecentSession()

Get the most recent session ID, if any.

Implementation

Future<String?> getMostRecentSession() async {
  final sessions = await listSessions();
  return sessions.isNotEmpty ? sessions.first : null;
}