Model class

Model is a mediator between WidgetModel and business logic.

Model abstracts the client (WidgetModel) from the supplier (repository, service, storage, etc) and defines the contract between presentation and service layers, thus allowing to develop both independently.

Model consists of Change and Performer.

Constructors

Model(List<Performer<dynamic, Change>> _performers)
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

Methods

listen<R, C extends FutureChange<R>>() Stream<R>
Listen to changes of exact type
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
perform<R>(Change<R> change) → R
Perform some change inside business logic once
toString() String
A string representation of this object.
inherited

Operators

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