toBlocked method

NotificationTopic toBlocked([
  1. String? uid
])

Returns a new instance with the provided uid blocked.

Implementation

NotificationTopic toBlocked([String? uid]) {
  return NotificationTopic(
    name: this.name,
    subjectUid: uid ?? this.subjectUid,
    blocked: true,
  );
}