ListViewParams constructor

ListViewParams({
  1. Axis? scrollDirection,
  2. bool? reverse,
  3. bool? shrinkWrap,
  4. double? cacheExtent,
  5. EdgeInsetsGeometry? padding,
  6. double? itemExtent,
  7. List<Widget?>? children,
  8. int? pageSize,
  9. String? loadMoreUrl,
  10. bool? isDemo,
  11. Widget? tempChild,
  12. String? dataKey,
})

Implementation

ListViewParams(
    {this.scrollDirection,
    this.reverse,
    this.shrinkWrap,
    this.cacheExtent,
    this.padding,
    this.itemExtent,
    this.children,
    this.pageSize,
    this.loadMoreUrl,
    this.isDemo,
    this.tempChild,
    this.dataKey}) {
  // assert(this.children != null || this.tempChild != null,
  //     "you must set one of [children] or [tempChild]");
  // if (this.tempChild != null) {
  //   assert(this.dataKey != null && this.children == null,
  //       "you must set [dataKey] and [children] not to set");
  // }
  // if (this.children != null) {
  //   assert(this.dataKey == null && this.tempChild == null,
  //       "do not set any dataKey and tempChild");
  // }
}