copyWith method

ContactEvent copyWith({
  1. int? month,
  2. int? day,
  3. int? year,
  4. EventLabel? label,
  5. String? customLabel,
})

Copy constructor

Implementation

ContactEvent copyWith({
  int? month,
  int? day,
  int? year,
  EventLabel? label,
  String? customLabel,
}) {
  return ContactEvent(
    month: month ?? this.month,
    day: day ?? this.day,
    year: year ?? this.year,
    label: label ?? this.label,
    customLabel: customLabel ?? this.customLabel,
  );
}