CompositeModel class abstract

A model that wraps another model, useful for composition.

class AppModel implements Model {
  final HeaderModel header;
  final ContentModel content;
  final FooterModel footer;

  // Delegate to child models and compose views
}
Implemented types

Constructors

CompositeModel()

Properties

children List<Model>
The child models that make up this composite.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

init() Cmd?
Returns an optional command to execute on program startup.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
update(Msg msg) → (Model, Cmd?)
Handles a message and returns the new model state and optional command.
inherited
view() Object
Renders the current model state for display.
inherited

Operators

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