WidgetModel class abstract

WidgetModel WM is logical representation of widget and its state. WidgetModelDependencies - is pack of dependencies for WidgetModel. Most often it is ErrorHandler. Model - optionally, but recommended, manager for connection with business layer

Constructors

WidgetModel(WidgetModelDependencies baseDependencies, {Model? model})

Properties

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

Methods

dispose() → void
Close streams of WM
doFuture<T>(Future<T> future, void onValue(T value), {void onError(Object error)?}) → void
Call a future. Using Rx wrappers with subscribe method is preferable.
doFutureHandleError<T>(Future<T> future, void onValue(T value), {void onError(Object error)?}) → void
Call a future with default error handling
handleError(Object e) → void
standard error handling
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onBind() → void
here need to bind
onLoad() → void
called when widget ready
subscribe<T>(Stream<T> stream, void onValue(T value), {void onError(Object error)?}) StreamSubscription<T>
subscribe for interactors
subscribeHandleError<T>(Stream<T> stream, void onValue(T value), {void onError(Object error)?}) StreamSubscription<T>
subscribe for interactors with default handle error
toString() String
A string representation of this object.
inherited

Operators

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