copyWith method
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,
);