HistoryObserverConfig class
The configuration of the RefenaHistoryObserver. It defines which events are saved.
Constructors
- HistoryObserverConfig.new({bool startImmediately = true, bool saveProviderInitEvents = false, bool saveProviderDisposeEvents = false, bool saveChangeEvents = true, bool saveRebuildEvents = true, bool saveActionDispatchedEvents = true, bool saveActionFinishedEvents = true, bool saveActionErrorEvents = true, bool saveMessageEvents = true})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- saveActionDispatchedEvents → bool
-
Whether the observer should save ActionDispatchedEvents.
final
- saveActionErrorEvents → bool
-
Whether the observer should save ActionErrorEvents.
final
- saveActionFinishedEvents → bool
-
Whether the observer should save ActionFinishedEvents.
final
- saveChangeEvents → bool
-
Whether the observer should save ChangeEvents.
final
- saveMessageEvents → bool
-
Whether the observer should save MessageEvents.
final
- saveProviderDisposeEvents → bool
-
Whether the observer should save ProviderDisposeEvents.
final
- saveProviderInitEvents → bool
-
Whether the observer should save ProviderInitEvents.
final
- saveRebuildEvents → bool
-
Whether the observer should save RebuildEvents.
final
- startImmediately → bool
-
Whether the observer should start immediately.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
only(
{bool startImmediately = true, bool providerInit = false, bool providerDispose = false, bool change = false, bool rebuild = false, bool actionDispatched = false, bool actionFinished = false, bool actionError = false, bool message = false}) → HistoryObserverConfig - Saves only the specified events.
Constants
- all → const HistoryObserverConfig
- Saves all events.
- defaultConfig → const HistoryObserverConfig
- By default, only ChangeEvents are saved.