Cmd<Msg> class

Constructors

Cmd(List<Effect<Msg>> base)
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

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 Methods

batch<Msg>(Iterable<Cmd<Msg>> cmds) Cmd<Msg>
Return multiple Cmds.
map<Msg, inner>(Cmd<inner> innerCmd, Msg f(inner)) Cmd<Msg>
Map a child Cmd to a parent Cmd.
none<Msg>() Cmd<Msg>
The empty case when no messages are needed.
ofArgFunc<Msg, Result, Arg>(FutureOr<Result?> task(Arg), Arg arg, {Msg onSuccess(Result)?, Msg? onMissing, Msg onException(Exception)?, Msg onError(Error)?}) Cmd<Msg>
Call a function that after returning a result, can be used to create and dispatch a new message.
ofEffect<Msg>(Effect<Msg> effect) Cmd<Msg>
Gets a reference to the dispatch function. The function that uses it can add between none and any number of messages.
ofFunc<Msg, Result>(FutureOr<Result?> task(), {Msg onSuccess(Result)?, Msg? onMissing, Msg onException(Exception)?, Msg onError(Error)?}) Cmd<Msg>
Call a function that after returning a result, can be used to create and dispatch a new message.
ofMsg<Msg>(Msg msg) Cmd<Msg>
Chain a new message after processing the previous message.