getUserAvatarNameColor function
- dynamic user,
- List colors
Implementation
Color getUserAvatarNameColor(types.User user, List<Color> colors) {
return colors[user.id.hashCode % colors.length];
}
Color getUserAvatarNameColor(types.User user, List<Color> colors) {
return colors[user.id.hashCode % colors.length];
}