copyWith method

  1. @override
ReadyListState<T> copyWith({
  1. Iterable<T>? items,
  2. int? totalCount,
  3. int? pageSize,
  4. ErrorDisplayCallBack? errorDisplay,
  5. StateType? stateType,
  6. ICancelToken? cancelToken,
})
override

Implementation

@override
ReadyListState<T> copyWith({
  Iterable<T>? items,
  int? totalCount,
  int? pageSize,
  ErrorDisplayCallBack? errorDisplay,
  StateType? stateType,
  ICancelToken? cancelToken,
}) {
  return ReadyListState<T>(
    items: items ?? this.items,
    totalCount: totalCount ?? this.totalCount,
    pageSize: pageSize ?? this.pageSize,
    errorDisplay: errorDisplay ?? this.errorDisplay,
    stateType: stateType ?? this.stateType,
    cancelToken: cancelToken ?? this.cancelToken,
  );
}