DataFlow class

A class representing a DataFlow.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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 Properties

events Stream<DataAction<DataStore>>
The events of this engine.
no setter

Static Methods

addMiddleware(DataMiddleware middleware) → void
Adds a middleware to this engine.
dispose() → void
Disposes of this engine.
getStore<T extends DataStore>() → T
Gets the store of the given type.
init<T extends DataStore>(T store, {List<DataMiddleware>? middlewares}) → void
Initializes the engine with the given store and middlewares.
notify(DataAction<DataStore> dataAction) → void
Notifies the engine of the given DataAction.
streamOf(Type action) Stream<DataAction<DataStore>>
Filters the main event stream with the action given as parameter. This can be used to perform some callbacks inside widgets after some action executed.