AnimatedSliverChildBuilderDelegate class

Inheritance

Constructors

AnimatedSliverChildBuilderDelegate(AnimatedWidgetBuilder builder, int initialChildCount, {bool addAutomaticKeepAlives = true, bool addRepaintBoundaries = true, AnimatedListAnimator animator = const DefaultAnimatedListAnimator(), bool addLongPressReorderable = true, double addAnimatedElevation = kDefaultAnimatedElevation, bool addFadeTransition = true, bool morphResizeWidgets = true, Duration morphDuration = kDefaultMorphTransitionDuration, MorphComparator? morphComparator, AnimatedListBaseReorderModel? reorderModel, InitialScrollOffsetCallback? initialScrollOffsetCallback, void didFinishLayoutCallback(int, int)?, bool holdScrollOffset = false})

Properties

addAnimatedElevation double
Whether to wrap each child in a Material, if a reorder model has been provided.
final
addAutomaticKeepAlives bool
See SliverChildBuilderDelegate.addAutomaticKeepAlives for details.
final
addFadeTransition bool
Whether to wrap each child in a FadeTransition.
final
addLongPressReorderable bool
Whether to wrap each child in a LongPressReorderable, if a reorder model has been provided.
final
addRepaintBoundaries bool
See SliverChildBuilderDelegate.addRepaintBoundaries for details.
final
animator AnimatedListAnimator
Provides an animator to customize all the animations. See AnimatedSliverChildDelegate.animator.
final
builder AnimatedWidgetBuilder
Provides the builder of the items currently present in the underlying list. See AnimatedSliverChildDelegate.builder.
final
didFinishLayoutCallback → (void Function(int, int)?)
The callback to be invoked on AnimatedSliverChildDelegate.didFinishLayout.
final
hashCode int
The hash code for this object.
no setterinherited
holdScrollOffset bool
Whether to prevent scrolling up when the above items not visibile are modified. See AnimatedSliverChildDelegate.holdScrollOffset.
final
initialChildCount int
The initial count of the children present in the underlying list. This attribute is only read during the first build. See AnimatedSliverChildDelegate.initialChildCount.
final
initialScrollOffsetCallback InitialScrollOffsetCallback?
A function that is called at the very early stage to give you the option to return the initial scroll offset. If null not callback will be invoked. See AnimatedSliverChildDelegate.initialScrollOffsetCallback.
final
morphComparator → MorphComparator?
If provided, it wraps each child in a MorphTransition.
final
morphDuration Duration
The duration of the MorphTransition effect.
final
morphResizeWidgets bool
Whether to resize the widget that is changing when applying the MorphTransition effect. If false, the widget with the largst content will be cropped during the animation. See also MorphTransition.resizeWidgets.
final
reorderModel AnimatedListBaseReorderModel?
Provides a model (a bunch of callbacks) that handles reordering. If null the list view cannot be reordered. See AnimatedSliverChildDelegate.reorderModel.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

didFinishLayout(int firstIndex, int lastIndex) → void
The callback didFinishLayoutCallback will be invoked, if any.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
wrapWidget(BuildContext context, Widget child, AnimatedWidgetBuilderData data) Widget
See AnimatedSliverChildDelegate.wrapWidget.
override

Operators

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