Resolver<T extends StateNotifier, R> class final

Creates and caches notifiers instances on the fly

Guarantees compile time safety

Constructors

Resolver(ArgNotifierBuilder<T, R> _builder)

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

call({R? arg, bool useCache = true}) → T
Redirects to create
clearCache({bool dispose = false}) → void
Clears cached notifiers only of type T
inject(T notifier) → void
Injects a notifier into this resolver
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeInjection() → void
Removed the injected notifier, and restores normal notifier creation
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

cachedNotifiers Iterable<StateNotifier>
no setter

Static Methods

clearAllCaches({bool dispose = false}) → void
Removes all cached notifiers of all types
removeFromCache(StateNotifier notifier) → void
Removes a cached StateNotifier from cache. Does nothing if value is not found in cache