Provider<E> class
- Inheritance
-
- Object
- BaseProvider<
E, dynamic> - Provider
- Implementers
Constructors
-
Provider(CreatorCallback<
E, dynamic> callback)
Properties
-
containerElements
→ Map<
String, Element> -
elements saved inside the ProvidersContainer
no setterinherited
-
creator
→ Creator<
E, dynamic> -
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< E> ? -
inherited
-
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< E> element, bool autoDispose) → void -
inherited
-
overrideCreator(
CreatorCallback< E, dynamic> callback, {bool? autoDispose}) → void -
For testing use this to override a provider behavior
inherited
-
read(
{String? tag}) → E -
return the
E
associated to the provider, if theE
is not saved into the ProvidersContainer the Element will be createdinherited -
setArguments(
dynamic args, {String? tag}) → void -
save arguments into the provider Ref
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
arguments<
E, A> (CreatorCallback< E, A> callback) → ArgumentsProvider<E, A> - creates an ArgumentsProvider
-
argumentsTag<
E, A> (CreatorCallback< E, A> callback) → TagArgumentsProvider<E, A> - creates an TagArgumentsProvider
-
state<
N extends StateNotifier< (S> , S>CreatorCallback< N, dynamic> callback, {bool autoDispose = true}) → StateNotifierProvider<N, S> - creates a StateNotifierProvider
-
stateArguments<
N extends StateNotifier< (S> , S, A>CreatorCallback< N, A> callback, {bool autoDispose = true, bool tags = false}) → StateNotifierArgumentsProvider<N, S, A> - creates a StateNotifierArgumentsProvider
-
stateArgumentsTag<
N extends StateNotifier< (S> , S, A>CreatorCallback< N, A> callback, {bool autoDispose = true, bool tags = false}) → StateNotifierTagArgumentsProvider<N, S, A> - creates a StateNotifierArgumentsProvider
-
stateTag<
N extends StateNotifier< (S> , S>CreatorCallback< N, dynamic> callback, {bool autoDispose = true}) → StateNotifierTagProvider<N, S> - creates a StateNotifierTagProvider
-
tag<
E> (CreatorCallback< E, dynamic> callback) → TagProvider<E> - creates a TagProvider