currentUserId property
set
currentUserId
(String? userId)
Implementation
set currentUserId(String? userId) {
if (_currentUserId != userId) {
cachedMap.clear();
}
_currentUserId = userId;
if (_currentUserId?.isNotEmpty == true) {
String? cache = sharedPreferences.getString(_currentUserId!);
if (cache != null) {
cachedMap = json.decode(cache);
}
}
}