RecentChatTile class
Constructors
-
RecentChatTile(RxChat rxChat, {Key? key, UserId? me, bool blocked = false, bool? selected = false, bool invertible = true, List<Widget>? trailing, FutureOr<RxUser?> getUser(UserId id)?, bool inContacts()?, void onLeave()?, void onArchive()?, void onHide()?, void onDrop()?, void onJoin()?, void onMute()?, void onUnmute()?, void onFavorite()?, void onUnfavorite()?, void onSelect()?, void onContact(bool)?, void onTap()?, void onDismissed()?, Widget avatarBuilder(Widget)?, bool? hasCall, Future<void> onPerformDrop(PerformDropEvent)?})
-
const
Properties
-
avatarBuilder
→ Widget Function(Widget child)
-
Builder for building an AvatarWidget the ChatTile displays.
final
-
blocked
→ bool
-
Indicator whether this RecentChatTile should display a blocked icon in
its trailing.
final
-
Indicator whether context menu should be enabled over this
RecentChatTile.
final
-
getUser
→ FutureOr<RxUser?> Function(UserId id)?
-
Callback, called when a RxUser identified by the provided UserId is
required.
final
-
hasCall
→ bool?
-
Indicator whether the RxChat has an OngoingCall happening in it.
final
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
inContacts
→ bool Function()?
-
Callback, called to check whether the rxChat is considered to be in
contacts list of the authenticated MyUser.
final
-
invertible
→ bool
-
Indicator whether ChatIsRoute.isRoute should be treated as selected.
final
-
key
→ Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
-
me
→ UserId?
-
UserId of the authenticated MyUser.
final
-
onArchive
→ void Function()?
-
Callback, called when this rxChat gets archived or unarchived.
final
-
onContact
→ void Function(bool)?
-
Callback, called when this rxChat add or remove contact action is
triggered.
final
-
onDismissed
→ void Function()?
-
Callback, called when this RecentChatTile is dismissed.
final
-
onDrop
→ void Function()?
-
Callback, called when a drop Chat.ongoingCall in this rxChat action is
triggered.
final
-
onFavorite
→ void Function()?
-
Callback, called when this rxChat add to favorites action is triggered.
final
-
onHide
→ void Function()?
-
Callback, called when this rxChat hide action is triggered.
final
-
onJoin
→ void Function()?
-
Callback, called when a join Chat.ongoingCall in this rxChat action is
triggered.
final
-
onLeave
→ void Function()?
-
Callback, called when this rxChat leave action is triggered.
final
-
onMute
→ void Function()?
-
Callback, called when this rxChat mute action is triggered.
final
-
onPerformDrop
→ Future<void> Function(PerformDropEvent)?
-
Callback, called when a file is dropped on this RecentChatTile.
final
-
onSelect
→ void Function()?
-
Callback, called when this rxChat select action is triggered.
final
-
onTap
→ void Function()?
-
Callback, called when this RecentChatTile is tapped.
final
-
onUnfavorite
→ void Function()?
-
Callback, called when this rxChat remove from favorites action is
triggered.
final
-
onUnmute
→ void Function()?
-
Callback, called when this rxChat unmute action is triggered.
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
rxChat
→ RxChat
-
RxChat this RecentChatTile is about.
final
-
selected
→ bool?
-
Indicator whether this RecentChatTile is selected.
final
-
trailing
→ List<Widget>?
-
Widgets to display in the trailing instead of the defaults.
final