build method

  1. @override
dynamic build(
  1. dynamic context,
  2. dynamic ref
)

Implementation

@override
Widget build(BuildContext context, WidgetRef ref) {
  final roomId = roomInfo.roomIdStr();
  final avatarInfo = ref.watch(roomHierarchyAvatarInfoProvider(roomInfo));
  bool showSuggested = indicateIfSuggested && roomInfo.suggested();

  return RoomWithAvatarInfoCard(
    roomId: roomId,
    avatarInfo: avatarInfo,
    onTap: onTap ?? () {},
    onFocusChange: onFocusChange,
    onLongPress: onLongPress,
    avatarSize: avatarSize,
    contentPadding: contentPadding,
    shape: shape,
    showSuggestedMark: showSuggested,
    trailing: trailing,
  );
}