ChatTile constructor
const
ChatTile({ - Key? key,
- RxChat? chat,
- List<Widget> title = const [],
- List<Widget> status = const [],
- List<Widget> subtitle = const [],
- List<Widget> leading = const [],
- List<Widget> trailing = const [],
- List<ContextMenuItem> actions = const [],
- bool selected = false,
- void onTap()?,
- double height = 80,
- double darken = 0,
- bool dimmed = false,
- Widget titleBuilder(
- Widget
)?,
- Widget avatarBuilder(
- Widget
)?,
- FutureOr<void> onForbidden()?,
})
Implementation
const ChatTile({
super.key,
this.chat,
this.title = const [],
this.status = const [],
this.subtitle = const [],
this.leading = const [],
this.trailing = const [],
this.actions = const [],
this.selected = false,
this.onTap,
this.height = 80,
this.darken = 0,
this.dimmed = false,
Widget Function(Widget)? titleBuilder,
Widget Function(Widget)? avatarBuilder,
this.enableContextMenu = true,
this.onForbidden,
}) : titleBuilder = titleBuilder ?? _defaultBuilder,
avatarBuilder = avatarBuilder ?? _defaultBuilder;