Observer mixin
Implements observer pattern.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
cancelSubscriptions(
) → void - Cancel all listener subscriptions.
-
get<
T extends Object> ({BuildContext? context, String? name, Filter? filter}) → T - Gets (but does not listen to) a single service or inherited widget.
-
listenTo<
T extends ChangeNotifier> ({BuildContext? context, T? notifier, String? name, Filter? filter, required void listener()}) → T - Locates a single service or inherited model and adds a listener ('subscribes') to it.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
register<
T extends Object> (BuildContext context, {String? name}) → void - Registers an inherited object.
-
toString(
) → String -
A string representation of this object.
inherited
-
unregister<
T extends Object> (BuildContext context, {String? name}) → void - Unregisters models registered with Observer.register.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited