NotificationCenter class

Notification center

Constructors

NotificationCenter()
factory

Properties

center ↔ BaseCenter
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

addObserver(Observer observer, String name) → void
Add observer with notification name
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
post(Notification notification) → Future<void>
Post a notification
postNotification(String name, dynamic sender, [Map? info]) → Future<void>
Post a notification with extra info
removeObserver(Observer observer, [String? name]) → void
Remove observer for notification name
toString() → String
A string representation of this object.
inherited

Operators

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