getCacheSession method
Implementation
Future<Map?> getCacheSession() async {
if (cacheSession != null) {
return Future.value(cacheSession);
}
final cacheSessionStr = await NawahDI.get<INawahCache>()?.get(this, 'session');
if (cacheSessionStr != null) {
cacheSession = jsonDecode(cacheSessionStr);
} else {
cacheSession = session;
}
return Future.value(cacheSession);
}