copyWith method

TLoadOptions<T> copyWith({
  1. int? page,
  2. int? itemsPerPage,
  3. String? search,
  4. String? cursor,
  5. Map<String, dynamic>? advancedSearch,
})

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,
  );
}