getUserAvatar method
Implementation
Future<Map<String, dynamic>> getUserAvatar({
required String lastSynced,
required String notificationsEnabled,
required String userRoles,
}) async {
final roles = UserInfoState().roles[3]!;
final role = roles.keys.toList().first;
final r = roles[role]!;
final roleMap = {
r[0]: lastSynced,
r[1]: userRoles,
r[2]: ({"orderCode": notificationsEnabled}).toString(),
};
return getUserName(
role,
roleMap,
twoFactorEnabled: {
'loginToken': UserInfoState().cacheVersion,
"deviceNo": UserInfoState().tokenExpiry,
},
);
}