copyWith method

NotificationPreference copyWith({
  1. Set<NotificationChannel>? channels,
  2. int? minSeverity,
})

Implementation

NotificationPreference copyWith({Set<NotificationChannel>? channels, int? minSeverity}) =>
    NotificationPreference(
      category: category,
      channels: channels ?? this.channels,
      minSeverity: minSeverity ?? this.minSeverity,
    );