copyWith method
Creates a copy with updated properties.
Implementation
TLoadResult<T> copyWith({
List<T>? items,
int? totalItems,
String? nextCursor,
bool? hasNextPage,
}) {
return TLoadResult<T>(
items ?? this.items,
totalItems ?? this.totalItems,
nextCursor: nextCursor ?? this.nextCursor,
hasNextPage: hasNextPage ?? this.hasNextPage,
);
}