copyWith method
Creates a copy with updated properties.
Implementation
TLoadOptions<T> copyWith({
int? page,
int? itemsPerPage,
String? search,
String? cursor,
Map<String, dynamic>? advancedSearch,
}) {
return TLoadOptions<T>(
page: page ?? this.page,
itemsPerPage: itemsPerPage ?? this.itemsPerPage,
search: search ?? this.search,
cursor: cursor ?? this.cursor,
advancedSearch: advancedSearch ?? this.advancedSearch,
);
}