copyWith method
AnimatedSliverInfiniteListOptions
copyWith({
- bool? reverse,
- EdgeInsets? padding,
- AlwaysScrollableScrollPhysics? scrollPhysics,
- int? bottomLoadingTriggerItemDistance,
- int? loadMoreTriggerItemDistance,
- bool? initialAnimation,
- Duration? insertDuration,
- Duration? deleteDuration,
- AnimatedChildBuilder? insertAnimation,
- AnimatedChildBuilder? deleteAnimation,
Implementation
AnimatedSliverInfiniteListOptions copyWith({
bool? reverse,
EdgeInsets? padding,
AlwaysScrollableScrollPhysics? scrollPhysics,
int? bottomLoadingTriggerItemDistance, // legacy alias
int? loadMoreTriggerItemDistance,
bool? initialAnimation,
Duration? insertDuration,
Duration? deleteDuration,
AnimatedChildBuilder? insertAnimation,
AnimatedChildBuilder? deleteAnimation,
}) {
return AnimatedSliverInfiniteListOptions(
reverse: reverse ?? this.reverse,
padding: padding ?? this.padding,
scrollPhysics: scrollPhysics ?? this.scrollPhysics,
loadMoreTriggerItemDistance:
(bottomLoadingTriggerItemDistance ?? loadMoreTriggerItemDistance) ??
this.loadMoreTriggerItemDistance,
initialAnimation: initialAnimation ?? this.initialAnimation,
insertDuration: insertDuration ?? this.insertDuration,
deleteDuration: deleteDuration ?? this.deleteDuration,
insertAnimation: insertAnimation ?? this.insertAnimation,
deleteAnimation: deleteAnimation ?? this.deleteAnimation,
);
}