PageData<T>.fromList constructor

PageData<T>.fromList(
  1. List<T> values, {
  2. bool thereAreMore = true,
})

Implementation

factory PageData.fromList(List<T> values, {bool thereAreMore = true}) => PageData(
      count: thereAreMore ? values.length + 1 : values.length,
      data: values,
      next: thereAreMore ? '' : null,
      previous: null,
    );