ListeneableProvider<N extends StateNotifier<S>, S, A> class abstract

Inheritance
Implemented types
Available extensions

Constructors

ListeneableProvider(CreatorCallback<N, A> callback, {bool autoDispose = true})

Properties

containerElements Map<String, Element>
elements saved inside the ProvidersContainer
no setterinherited
creator Creator<N, A>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose({String? tag}) Element<N>?
override
getKey(String? tag) String
generate a key to be used into the ProvidersContainer
inherited
mounted({String? tag}) bool
check if the current provider has a valid Element value into the ProvidersContainer
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onElementValueAssigned(Element<N> element, bool autoDispose) → void
override
overrideCreator(CreatorCallback<N, A> callback, {bool? autoDispose}) → void
For testing use this to override a provider behavior
inherited
read({String? tag}) → N
return the E associated to the provider, if the E is not saved into the ProvidersContainer the Element will be created
inherited
select<R>(SelectCallback<S, R> callback, {String? tag, bool booleanCallback = false}) SelectFilteredProvider<N, S, R>

Available on ListeneableProvider<N, S, A>, provided by the StateNotifierProviderExtension extension

setArguments(A args, {String? tag}) → void
save arguments into the provider Ref
inherited
toString() String
A string representation of this object.
inherited
when<R>(BuildWhenCallback<S> callback, {String? tag, bool booleanCallback = false}) WhenFilteredProvider<N, S>

Available on ListeneableProvider<N, S, A>, provided by the StateNotifierProviderExtension extension

Operators

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