NyPullToRefresh<T> constructor
NyPullToRefresh<T> ({
- Key? key,
- dynamic onRefresh()?,
- dynamic beforeRefresh()?,
- dynamic afterRefresh(
- dynamic data
- required Widget child(
- BuildContext context,
- dynamic data
- required Future data(
- int iteration
- Widget? empty,
- Widget? loading,
- String? stateName,
- List<
T> transform(- List<
T>
- List<
- Axis? scrollDirection,
- bool? reverse,
- ScrollController? controller,
- bool? primary,
- ScrollPhysics? physics,
- bool? shrinkWrap,
- EdgeInsets? padding = EdgeInsets.zero,
- 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,
- String? headerStyle,
- Clip? clipBehavior,
- bool? useSkeletonizer,
- Widget? header,
- List sort(
- dynamic items
Implementation
NyPullToRefresh(
{Key? key,
this.onRefresh,
this.beforeRefresh,
this.afterRefresh,
required this.child,
required this.data,
this.empty,
this.loading,
this.stateName,
this.transform,
this.scrollDirection,
this.reverse,
this.controller,
this.primary,
this.physics,
this.shrinkWrap,
this.padding = EdgeInsets.zero,
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.headerStyle,
this.clipBehavior,
this.useSkeletonizer,
this.header,
this.footerLoadingIcon,
this.sort})
: kind = "builder",
crossAxisCount = null,
mainAxisSpacing = null,
crossAxisSpacing = null,
separatorBuilder = null,
super(key: key);