ChatTile constructor

const ChatTile({
  1. Key? key,
  2. RxChat? chat,
  3. List<Widget> title = const [],
  4. List<Widget> status = const [],
  5. List<Widget> subtitle = const [],
  6. List<Widget> leading = const [],
  7. List<Widget> trailing = const [],
  8. List<ContextMenuItem> actions = const [],
  9. bool selected = false,
  10. void onTap()?,
  11. double height = 80,
  12. double darken = 0,
  13. bool dimmed = false,
  14. Widget titleBuilder(
    1. Widget
    )?,
  15. Widget avatarBuilder(
    1. Widget
    )?,
  16. bool enableContextMenu = true,
  17. 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;