copyWith method
ReadyListState<T>
copyWith({
- Iterable<
T> ? items, - int? totalCount,
- int? pageSize,
- ErrorDisplayCallBack? errorDisplay,
- StateType? stateType,
- 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,
);
}