InsertAdaptiveItemEvent<T> class
{@macro insert_all_items_event}
{@template insert_adaptive_item_event.adaptive_base_info} This modification event does not have its own logic. The main and only task of this event is to add to EventController the proper event, based on runtimeType of the current ScrollView.
Namely, if the runtimeType of current ScrollView is one of:
then an InsertInfluencedItemEvent will be added to EventController.
If the runtimeType is AnimatedListView or SliverAnimatedListView, then InsertItemEvent will be added.
If the runtimeType is of any other type - take a look at InsertAdaptiveItemEvent.customScrollViewEventBuilder docstring. {@endtemplate}
See also:
- Inheritance
-
- Object
- ModificationEvent<
T> - InsertAdaptiveItemEvent
Constructors
-
InsertAdaptiveItemEvent({int? index, required T item, bool forceNotify = false, AnimationControllerConfig removeInfluencedAnimationConfig = const AnimationControllerConfig(), AnimationControllerConfig insertAnimationConfig = const AnimationControllerConfig(initialValue: 0), EventBuilder<
T> ? customScrollViewEventBuilder}) - Creates an InsertAdaptiveItemEvent
Properties
-
customScrollViewEventBuilder
→ EventBuilder<
T> ? -
{@macro insert_adaptive_item_event.event_builder}
final
- forceNotify → bool
-
Whether should ItemsNotifier notify its listeners immediately
after inserting the item, or delegate this task to the
ItemsNotifier itself
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int?
-
Index, at which item should be inserted
final
- insertAnimationConfig → AnimationControllerConfig
-
The animation settings, item should be inserted with
final
- item → T
-
The item, that should be inserted
final
- removeInfluencedAnimationConfig → AnimationControllerConfig
-
The animation settings, affected items should be removed with
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
execute(
{required TickerProvider vsync, required ItemsNotifier< T> itemsNotifier, required EventController<T> eventController, required ItemsAnimationController<DoubleAnimation> itemsAnimationController, required Type scrollViewType}) → Future<void> -
Method, that should contain all the logic of item list
modifications(inserting, deleting, moving, etc.), and animations, that
should be executed when an item is deleted/inserted.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited