UIListView constructor

UIListView({
  1. Key? key,
  2. ScrollPhysics? physics,
  3. EdgeInsets? edgeInsets,
  4. Axis? scrollDirection,
  5. bool? needScrollerListener,
  6. UIListViewDidScrollClosure? didScrollClosure,
  7. List<UIListSection>? sections,
  8. RefreshController? refreshController,
  9. VoidCallback? onRefresh,
  10. 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;
}