const
Widget.listView(- {Key? key,
- @Default(Axis.vertical) Axis scrollDirection,
- @Default(false) bool reverse,
- bool? primary,
- ScrollPhysics? physics,
- @Default(false) bool shrinkWrap,
- EdgeInsets? padding,
- double? itemExtent,
- Widget? prototypeItem,
- @Default(true) bool addAutomaticKeepAlives,
- @Default(true) bool addRepaintBoundaries,
- @Default(true) bool addSemanticIndexes,
- double? cacheExtent,
- @Default([]) List<Widget> children,
- int? semanticChildCount,
- String? restorationId,
- @Default(Clip.hardEdge) Clip clipBehavior}
)
Implementation
const factory Widget.listView({
Key? key,
@Default(Axis.vertical) Axis scrollDirection,
@Default(false) bool reverse,
bool? primary,
ScrollPhysics? physics,
@Default(false) bool shrinkWrap,
EdgeInsets? padding,
double? itemExtent,
Widget? prototypeItem,
@Default(true) bool addAutomaticKeepAlives,
@Default(true) bool addRepaintBoundaries,
@Default(true) bool addSemanticIndexes,
double? cacheExtent,
@Default([]) List<Widget> children,
int? semanticChildCount,
String? restorationId,
@Default(Clip.hardEdge) Clip clipBehavior,
}) = ListView;