defaultAvatar static method

Widget defaultAvatar({
  1. double width = 30,
  2. double height = 30,
  3. Color? color,
})

Implementation

static Widget defaultAvatar(
    {double width = 30, double height = 30, Color? color}) {
  return Image(
    gaplessPlayback: true,
    color: color,
    width: width,
    height: height,
    image: ChatUIKitSettings.avatarPlaceholder ??
        AssetImage('assets/images/avatar.png', package: packageName),
    fit: BoxFit.fill,
  );
}