buildUserAvatar method

Widget buildUserAvatar(
  1. BuildContext context,
  2. String id
)

Implementation

Widget buildUserAvatar(BuildContext context, String id) =>
    FutureBuilder<AbstractChatUser>(
        future: getUser(id),
        builder: (context, snap) =>
            snap.hasData ? snap.data!.avatar : const SizedBox.shrink());