ScrollToMessageMixin mixin

Mixin applications

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

attachScrollMethods({required ScrollToMessageId scrollToMessageId, required ScrollToIndex scrollToIndex}) → void
Attaches the scroll methods that will be used for scrolling operations. This is called automatically by ChatAnimatedList.
detachScrollMethods() → void
Detaches the scroll methods when the widget is disposed.
disposeScrollMethods() → void
Disposes scroll resources. This should be called in the ChatController's dispose method.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
scrollToIndex(int index, {Duration duration = const Duration(milliseconds: 250), Curve curve = Curves.linearToEaseOut, double alignment = 0, double offset = 0}) Future<void>
Scrolls to a specific index in the message list.
scrollToMessage(String messageId, {Duration duration = const Duration(milliseconds: 250), Curve curve = Curves.linearToEaseOut, double alignment = 0, double offset = 0}) Future<void>
Scrolls to a specific message by ID.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited