copyWith method

NotificationEvent copyWith({
  1. String? description,
  2. int? id,
  3. String? name,
  4. NotificationEvent? templateEvent,
})

Implementation

NotificationEvent copyWith(
    {String? description,
    int? id,
    String? name,
    NotificationEvent? templateEvent}) {
  return NotificationEvent(
    description: description ?? this.description,
    id: id ?? this.id,
    name: name ?? this.name,
    templateEvent: templateEvent ?? this.templateEvent,
  );
}