copyWith method

TransactionResponseModel copyWith({
  1. List<TransactionModel>? data,
  2. int? count,
  3. int? pageSize,
  4. int? currentPage,
  5. int? lastPage,
})

Implementation

TransactionResponseModel copyWith({
  List<TransactionModel>? data,
  int? count,
  int? pageSize,
  int? currentPage,
  int? lastPage,
}) =>
    TransactionResponseModel(
      data: data ?? this.data,
      count: count ?? this.count,
      pageSize: pageSize ?? this.pageSize,
      currentPage: currentPage ?? this.currentPage,
      lastPage: lastPage ?? this.lastPage,
    );