copyWith method

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

Implementation

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