GuardSync class

A broadcast sink used to re-trigger the guard pipeline on demand.

Push a GuardSyncReason into GuardSync when an external condition has changed and the current navigation state must be re-evaluated by the guards (for example, after authentication state changes and a redirect guard should reconsider the current tree).

Implemented types
Annotations

Constructors

GuardSync({GuardObserver? observer})
A broadcast sink used to re-trigger the guard pipeline on demand.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stream → Stream<GuardSyncReason>
Stream of re-evaluation reasons pushed into this sync.
no setter

Methods

add(GuardSyncReason data) → void
Pushes data into the sync, notifying the observer and listeners.
override
close() → Future<void>
Closes the underlying stream controller.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sync(GuardSyncReason reason) → void
Pushes reason into the sync. Equivalent to add.
toString() → String
A string representation of this object.
inherited

Operators

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