StackedListView constructor
const
StackedListView({
- Key? key,
- required int itemCount,
- required IndexedWidgetBuilder builder,
- bool reverse = false,
- Axis scrollDirection = Axis.vertical,
- EdgeInsetsGeometry? padding,
- ScrollController? controller,
- ScrollPhysics? physics,
- required double itemExtent,
- double fadeOutFrom = 0.7,
- double heightFactor = 1,
- double widthFactor = 1,
- StackedItemOnRemove? onRemove,
- StackedItemBeforeRemove? beforeRemove,
- Duration animateDuration = kThemeAnimationDuration,
Implementation
const StackedListView({
Key? key,
required this.itemCount,
required this.builder,
this.reverse = false,
this.scrollDirection = Axis.vertical,
this.padding,
this.controller,
this.physics,
required this.itemExtent,
this.fadeOutFrom = 0.7,
this.heightFactor = 1,
this.widthFactor = 1,
this.onRemove,
this.beforeRemove,
this.animateDuration = kThemeAnimationDuration,
}) : assert(fadeOutFrom >= 0 && fadeOutFrom <= 1,
'The range of "fadeOutFrom" must be 0.0 ~ 1.0'),
assert(widthFactor >= 0 && widthFactor <= 1,
'The range of "widthFactor" must be 0.0 ~ 1.0'),
assert(heightFactor >= 0 && heightFactor <= 1,
'The range of "heightFactor" must be 0.0 ~ 1.0'),
assert(widthFactor == 1 || heightFactor == 1,
'One of "widthFactor" or "heightFactor" must equal 1'),
super(key: key);