NotificationTopic class

A method to help manage blocking and unblocking of notification topics for Firebase Cloud Messaging or similar services.

Inheritance

Constructors

NotificationTopic({String? name, String? subjectUid, bool blocked = false})
const
NotificationTopic.fromString(String? input)
factory

Properties

blocked → bool
final
hashCode → int
The hash code for this object.
no setterinherited
name → String?
final
props → List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stringify → bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
subjectUid → String?
final

Methods

copyWith({String? name, String? subjectUid, bool? blocked}) → NotificationTopic
Copies the current instance and replaces the provided values.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toBlocked([String? uid]) → NotificationTopic
Returns a new instance with the provided uid blocked.
toString() → String
A string representation of this object.
override
toUnblocked([String? uid]) → NotificationTopic
Returns a new instance with the provided uid unblocked.

Operators

operator ==(Object other) → bool
The equality operator.
inherited