BaseProvider<E, A> class abstract

Constructors

BaseProvider(CreatorCallback<E, A> callback, {bool autoDispose = true})

Properties

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

Methods

dispose({String? tag}) Element<E>?
getKey(String? tag) String
generate a key to be used into the ProvidersContainer
mounted({String? tag}) bool
check if the current provider has a valid Element value into the ProvidersContainer
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onElementValueAssigned(Element<E> element, bool autoDispose) → void
overrideCreator(CreatorCallback<E, A> callback, {bool? autoDispose}) → void
For testing use this to override a provider behavior
read({String? tag}) → E
return the E associated to the provider, if the E is not saved into the ProvidersContainer the Element will be created
setArguments(A args, {String? tag}) → void
save arguments into the provider Ref
toString() String
A string representation of this object.
inherited

Operators

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