NyListView<T>.grid constructor
NyListView<T>.grid ({
- Key? key,
- int? crossAxisCount = 2,
- double? mainAxisSpacing = 1.0,
- double? crossAxisSpacing = 1.0,
- required Widget child(
- BuildContext context,
- dynamic data
- required Future data(),
- dynamic transform(
- List<
T> data
- List<
- Widget? empty,
- Widget? loading,
- String? stateName,
- Axis? scrollDirection,
- bool? reverse,
- ScrollController? controller,
- bool? primary,
- ScrollPhysics? physics,
- bool? shrinkWrap,
- EdgeInsets? padding,
- double? itemExtent,
- Widget? prototypeItem,
- ChildIndexGetter? findChildIndexCallback,
- bool addAutomaticKeepAlives = true,
- bool addRepaintBoundaries = true,
- bool addSemanticIndexes = true,
- double? cacheExtent,
- int? semanticChildCount,
- DragStartBehavior? dragStartBehavior,
- ScrollViewKeyboardDismissBehavior? keyboardDismissBehavior,
- String? restorationId,
- Clip? clipBehavior,
- bool? useSkeletonizer,
- Widget? header,
- dynamic sort(
- List<
T> items
- List<
Implementation
NyListView.grid(
{Key? key,
this.crossAxisCount = 2,
this.mainAxisSpacing = 1.0,
this.crossAxisSpacing = 1.0,
required this.child,
required this.data,
this.transform,
this.empty,
this.loading,
this.stateName,
this.scrollDirection,
this.reverse,
this.controller,
this.primary,
this.physics,
this.shrinkWrap,
this.padding,
this.itemExtent,
this.prototypeItem,
this.findChildIndexCallback,
this.addAutomaticKeepAlives = true,
this.addRepaintBoundaries = true,
this.addSemanticIndexes = true,
this.cacheExtent,
this.semanticChildCount,
this.dragStartBehavior,
this.keyboardDismissBehavior,
this.restorationId,
this.clipBehavior,
this.useSkeletonizer,
this.header,
this.sort})
: kind = "grid",
separatorBuilder = null,
super(key: key);