createAvatarImage function

ImageElement createAvatarImage(
  1. User user, {
  2. int width = 128,
  3. int height = 128,
})

Creates an Image Element from a User that has the user's avatar.

Implementation

ImageElement createAvatarImage(
  User user, {
  int width = 128,
  int height = 128,
}) {
  return ImageElement(src: user.avatarUrl, width: width, height: height);
}