OptimizedListView<T> constructor
const
OptimizedListView<T> ({
- Key? key,
- required List<
T> list, - required Widget builder(
- BuildContext context,
- ValueKey key,
- T item
- Axis scrollDirection = Axis.vertical,
- bool reverse = false,
- ScrollController? controller,
- bool? primary,
- ScrollPhysics? physics,
- Widget onEmpty = const SizedBox.shrink(),
- bool shrinkWrap = false,
Implementation
const OptimizedListView({
super.key,
required this.list,
required this.builder,
this.scrollDirection = Axis.vertical,
this.reverse = false,
this.controller,
this.primary,
this.physics,
this.onEmpty = const SizedBox.shrink(),
this.shrinkWrap = false,
}) : length = list.length;