RecentChatTile class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- RecentChatTile
- Available extensions
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 onHide(bool)?, 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 enableContextMenu = true, 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
- enableContextMenu → bool
-
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
- marginZero → Widget
-
Available on Widget, provided by the WidgetMarginX extension
no setter - me → UserId?
-
UserId of the authenticated MyUser.
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(bool)?
-
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
- paddingZero → Widget
-
Available on Widget, provided by the WidgetPaddingX extension
no setter - 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
- sliverBox → Widget
-
Available on Widget, provided by the WidgetSliverBoxX extension
no setter -
trailing
→ List<
Widget> ? -
Widgets to display in the trailing instead of the defaults.
final
Methods
-
animate(
{Key? key, List< Effect> ? effects, AnimateCallback? onInit, AnimateCallback? onPlay, AnimateCallback? onComplete, bool? autoPlay, Duration? delay, AnimationController? controller, Adapter? adapter, double? target, double? value}) → Animate -
Available on Widget, provided by the AnimateWidgetExtensions extension
Wraps the target Widget in an Animate instance, and returns the instance for chaining calls. Ex.myWidget.animate()
is equivalent toAnimate(child: myWidget)
. -
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
marginAll(
double margin) → Widget -
Available on Widget, provided by the WidgetMarginX extension
-
marginOnly(
{double left = 0.0, double top = 0.0, double right = 0.0, double bottom = 0.0}) → Widget -
Available on Widget, provided by the WidgetMarginX extension
-
marginSymmetric(
{double horizontal = 0.0, double vertical = 0.0}) → Widget -
Available on Widget, provided by the WidgetMarginX extension
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
paddingAll(
double padding) → Widget -
Available on Widget, provided by the WidgetPaddingX extension
-
paddingOnly(
{double left = 0.0, double top = 0.0, double right = 0.0, double bottom = 0.0}) → Widget -
Available on Widget, provided by the WidgetPaddingX extension
-
paddingSymmetric(
{double horizontal = 0.0, double vertical = 0.0}) → Widget -
Available on Widget, provided by the WidgetPaddingX extension
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited