copyWith method

NotAvailable copyWith({
  1. String? description,
  2. Period? during,
})

Creates a copy of the NotAvailable instance and allows for non-destructive mutation.

Implementation

NotAvailable copyWith({
  String? description,
  Period? during,
}) =>
    NotAvailable(
      description: description ?? this.description,
      during: during ?? this.during,
    );