copyWith method

DyItemData<T> copyWith({
  1. T? data,
  2. bool? isSelected,
  3. int? page,
  4. DyItemDataSource? source,
})

Implementation

DyItemData<T> copyWith({
  T? data,
  bool? isSelected,
  int? page,
  DyItemDataSource? source,
}) =>
    DyItemData<T>(
      data: data ?? this.data,
      isSelected: isSelected ?? this.isSelected,
      page: page ?? this.page,
      source: source ?? this.source,
    );