getUserAvatar method
Implementation
Future<Uint8List> getUserAvatar() async {
try {
Uint8List? bytes = _store.get("avatar");
if (bytes == null) {
bytes = await _userAPI.getUserAvatar();
_store.put("avatar", bytes);
}
return bytes;
} catch (e) {
return Uint8List(0);
}
}