OtimizedListView<T> constructor
const
OtimizedListView<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 OtimizedListView({
Key? 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,
}) : lenght = list.length,
super(key: key);