copyWith method

NotificationTopic copyWith({
  1. String? name,
  2. String? subjectUid,
  3. bool? blocked,
})

Copies the current instance and replaces the provided values.

Implementation

NotificationTopic copyWith({
  String? name,
  String? subjectUid,
  bool? blocked,
}) {
  return NotificationTopic(
    name: name ?? this.name,
    subjectUid: subjectUid ?? this.subjectUid,
    blocked: blocked ?? this.blocked,
  );
}