SimpleProvider<T> class
- Inheritance
-
- Object
- Provider<
T> - BaseProvider<
T> - SimpleProvider
- Available extensions
Constructors
-
SimpleProvider(_LazyCallback<
T> creator, {bool autoDispose = true, void onDisposed()?})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- mounted → bool
-
no setterinherited
- read → T
-
returs always the same instance of
T
, if it is not created yet this will create it.no setterinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
{bool avoidOnDisposeCallback = false}) → void -
dispose the notifier linked to this provider
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
overrideProvider(
_LazyCallback< T> creator, {bool? autoDispose}) → void -
overrides the creator function of this provider useful for unit test.
inherited
-
select<
Result> (_BuildBySelect< Notifier, Result> callback) → Target<Notifier, Result> -
Available on SimpleProvider<
use this method to rebuild your Consumer when a value has changed or you can use a boolean condition. Check the documentation for more info.Notifier> , provided by the SimpleProviderExt extension -
setArguments(
dynamic arguments) → void -
set the arguments to be available in the ProviderReference
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
withTag<
T extends SimpleNotifier> (_LazyCallback< T> creator, {bool autoDispose = true}) → SimpleTagProvider<T>