PersistorPrinterDecorator<St> class Null safety

A decorator to print persistor information to the console. Use it like this:

var store = Store<AppState>(...,  persistor: PersistorPrinterDecorator(persistor));
Inheritance

Constructors

PersistorPrinterDecorator(Persistor<St> _persistor)

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
throttle Duration?
The default throttle is 2 seconds. Pass null to turn off throttle.
read-only, override

Methods

deleteState() Future<void>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
persistDifference({required St? lastPersistedState, required St newState}) Future<void>
override
readState() Future<St>
override
saveInitialState(St state) Future<void>
override
toString() String
A string representation of this object. [...]
inherited

Operators

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