NotifyManager class

The manager for receiving notifications when assets change.

This class provides methods for starting and stopping asset change notifications, as well as adding and removing callbacks to be executed upon changes. It also exposes a Stream of boolean values that can be used to track whether notifications are currently enabled or disabled.

Constructors

NotifyManager()

Properties

hashCode int
The hash code for this object.
no setterinherited
notifyStream Stream<bool>
Returns a Stream that emits a boolean value indicating whether asset change notifications are currently enabled.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addChangeCallback(ValueChanged<MethodCall> c) → void
Adds a callback function to be executed upon asset changes.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeChangeCallback(ValueChanged<MethodCall> c) → void
Removes a callback function from the list to be executed upon asset changes.
startChangeNotify() Future<bool>
Enables asset change notifications.
stopChangeNotify() Future<bool>
Disables asset change notifications.
toString() String
A string representation of this object.
override

Operators

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