copyWith method
Create a new ModelDate with the specified year
, month
, and day
.
指定したyear
、month
、day
で新しいModelDateを作成します。
Implementation
ModelDate copyWith({int? year, int? month, int? day}) {
return ModelDate.date(
year ?? value.year,
month ?? value.month,
day ?? value.day,
);
}