copyWith method

BannerModel copyWith({
  1. int? id,
  2. String? title,
  3. String? description,
  4. String? photo,
  5. int? order,
  6. DateTime? createdAt,
})

Implementation

BannerModel copyWith({
  int? id,
  String? title,
  String? description,
  String? photo,
  int? order,
  DateTime? createdAt,
}) =>
    BannerModel(
      id: id ?? this.id,
      title: title ?? this.title,
      description: description ?? this.description,
      photo: photo ?? this.photo,
      order: order ?? this.order,
      createdAt: createdAt ?? this.createdAt,
    );