ProviderInitEvent class

A provider is initialized (happens only once per runtime). This happens either immediately during provider override or lazily when the provider is accessed the first time.

Inheritance

Constructors

ProviderInitEvent({required BaseProvider<BaseNotifier, dynamic> provider, required BaseNotifier notifier, required ProviderInitCause cause, required Object? value})

Properties

cause ProviderInitCause
The cause of the initialization.
final
debugLabel String
A label to be used in debug messages and by the RefenaTracingPage.
no setterinherited
hashCode int
The hash code for this object.
no setteroverride
millisSinceEpoch int
The timestamp when the event was fired. We use int to save memory.
finalinherited
notifier → BaseNotifier
The notifier that is associated with the provider.
final
provider → BaseProvider<BaseNotifier, dynamic>
The provider that has been initialized.
final
refenaId int
The id.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value Object?
The initial value of the provider.
final

Methods

compareIdentity(IdReference other) bool
Returns true, if the other reference has the same id.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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