copyWith method

SavedCardsModel copyWith({
  1. bool? success,
  2. int? code,
  3. String? description,
  4. List<CardData>? data,
})

Implementation

SavedCardsModel copyWith({
  bool? success,
  int? code,
  String? description,
  List<CardData>? data,
}) =>
    SavedCardsModel(
      success: success ?? this.success,
      code: code ?? this.code,
      description: description ?? this.description,
      data: data ?? this.data,
    );