AnimatedListController class

Use this controller to notify to the AnimatedListView about changes in your underlying list and more.

Constructors

AnimatedListController()

Properties

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

Methods

batch(VoidCallback callback) → void
If more changes to the underlying list need be applied in a row, it is more efficient to call this method and notify all the changes within the callback.
computeItemBox(int index, [bool absolute = false]) Rect?
Calculates the box (in pixels) of the item indicated by the index provided.
getItemVisibleSize(int index) → _PercentageSize?
Returns the size of the visible part (in pixels) of a certain item in the list view.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyChangedRange(int from, int count, AnimatedWidgetBuilder changeItemBuilder) → void
Notifies the AnimatedListView that a range starting from from and count long has been modified. Call this method after actually you have updated your list. A new builder changeItemBuilder has to be provided in order to build the old items when animating.
notifyInsertedRange(int from, int count) → void
Notifies the AnimatedListView that a new range starting from from and count long has been inserted. Call this method after actually you have updated your list.
notifyMovedRange(int from, int count, int newIndex) → void
Notifies the AnimatedListView that a range starting from from and count long has been moved to a new location, at newIndex position (the new index considers the interval just removed). Call this method after you have updated your list.
notifyRemovedRange(int from, int count, AnimatedWidgetBuilder removeItemBuilder) → void
Notifies the AnimatedListView that a range starting from from and count long has been removed. Call this method after actually you have updated your list. A new builder removeItemBuilder has to be provided in order to build the removed items when animating.
notifyReplacedRange(int from, int removeCount, int insertCount, AnimatedWidgetBuilder removeItemBuilder) → void
Notifies the AnimatedListView that a range starting from from and removeCount long has been replaced with a new insertCount long range. Call this method after you have updated your list. A new builder removeItemBuilder has to be provided in order to build the replaced items when animating.
notifyStartReorder(BuildContext context, double dx, double dy) bool
Notifies the AnimatedListView that a new reoder has begun. The context has to be provided to help AnimatedListView to locate the item to be picked up for reordering. The attributs dx and dy are the coordinates relative to the position of the item.
notifyStopReorder(bool cancel) → void
Notifies the AnimatedListView that the reorder has finished or cancelled (cancel set to true).
notifyUpdateReorder(double dx, double dy) → void
Notifies the AnimatedListView that the dragged item has moved. The attributs dx and dy are the coordinates relative to the original position of the item.
test() → void
toString() String
A string representation of this object.
inherited

Operators

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