getSession static method
Gets the current session from storage.
This is a convenience method. Consider using SessionManager.session() for session-related operations.
Implementation
static Session? getSession() {
return read<Session>(
'session',
decoder: (json) => Session.fromJson(json),
);
}