ChatScrollObserver class
Constructors
- ChatScrollObserver(ListObserverController observerController)
Properties
- changeCount ↔ int
-
The number of messages added.
getter/setter pair
- fixedPositionOffset ↔ double
-
The current chat location is retained when the scrollView offset is
greater than fixedPositionOffset.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- innerIsNeedFixedPosition ↔ bool
-
getter/setter pair
- innerIsShrinkWrap ↔ bool
-
getter/setter pair
- innerMode ↔ ChatScrollObserverHandleMode
-
The mode of processing.
getter/setter pair
- innerRefItemIndex ↔ int
-
getter/setter pair
- innerRefItemIndexAfterUpdate ↔ int
-
getter/setter pair
- innerRefItemLayoutOffset ↔ double
-
getter/setter pair
- isNeedFixedPosition → bool
-
Whether a fixed position is required.
no setter
- isRemove ↔ bool
-
Whether is remove chat data.
getter/setter pair
- isShrinkWrap → bool
-
Control the
shrinkWrap
properties of the external scroll view.no setter - observerController → ListObserverController
-
Used to obtain the necessary child widget information.
final
- onHandlePositionCallback ↔ (void Function(ChatScrollObserverHandlePositionType)?)
-
The result callback for processing chat location.
getter/setter pair
- onHandlePositionResultCallback ↔ (void Function(ChatScrollObserverHandlePositionResultModel)?)
-
The result callback for processing chat location.
getter/setter pair
- refItemIndex → int
-
The index of the reference.
no setter
- refItemIndexAfterUpdate → int
-
The index of the reference after ScrollView children update.
no setter
- refItemLayoutOffset → double
-
The
layoutOffset
of the reference.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- toRebuildScrollViewCallback ↔ Function?
-
The callback that tells the outside to rebuild the scroll view.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
observeRefItem(
) → ListViewObserveDisplayingChildModel? - Observation result of reference subparts after ScrollView children update.
-
observeSwitchShrinkWrap(
) → dynamic -
standby(
{BuildContext? sliverContext, bool isRemove = false, int changeCount = 1, ChatScrollObserverHandleMode mode = ChatScrollObserverHandleMode.normal, int refItemRelativeIndex = 0, int refItemRelativeIndexAfterUpdate = 0}) → dynamic - Prepare to adjust position for sliver.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited