UIListView constructor
UIListView({
- Key? key,
- ScrollPhysics? physics,
- EdgeInsets? edgeInsets,
- Axis? scrollDirection,
- bool? needScrollerListener,
- UIListViewDidScrollClosure? didScrollClosure,
- List<
UIListSection> ? sections, - RefreshController? refreshController,
- VoidCallback? onRefresh,
- VoidCallback? onLoading,
Implementation
UIListView({
Key? key,
ScrollPhysics? physics,
EdgeInsets? edgeInsets,
Axis? scrollDirection,
bool? needScrollerListener,
UIListViewDidScrollClosure? didScrollClosure,
List<UIListSection>? sections,
RefreshController? refreshController,
VoidCallback? onRefresh,
VoidCallback? onLoading,
}) : super(key: key) {
// ignore: prefer_initializing_formals
this.physics = physics ?? const AlwaysScrollableScrollPhysics();
this.edgeInsets = edgeInsets ?? const EdgeInsets.all(0);
this.scrollDirection = scrollDirection ?? Axis.vertical;
this.needScrollerListener = needScrollerListener ?? true;
// ignore: prefer_initializing_formals
this.didScrollClosure = didScrollClosure;
this.sections = sections ?? [];
// ignore: prefer_initializing_formals
this.refreshController = refreshController;
// ignore: prefer_initializing_formals
this.onRefresh = onRefresh;
// ignore: prefer_initializing_formals
this.onLoading = onLoading;
}