Sub<Msg> class

Constructors

Sub(Subs<Msg> subs)
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>(List<Sub<Msg>> subs) Sub<Msg>
Concat a list of subscriptions into a single one.
fromFuture<Msg, S>(SubscriptionId id, Future<S> future, Msg? futureObjectToMsg(S)) SubItem<Msg>
Creates a subscription from a future, transforming the future object to a message.
fromMsgStream<Msg>(SubscriptionId id, Stream<Msg?> stream) SubItem<Msg>
Creates a subscription from a stream, using the stream objects as messages.
fromStream<Msg, S>(SubscriptionId id, Stream<S> stream, Msg? streamObjectToMsg(S)) SubItem<Msg>
Creates a subscription from a stream, transforming the stream objects to messages.
map<Inner, Msg>(String idPrefix, Sub<Inner> sub, Msg f(Inner)) Sub<Msg>
Map a subscription from a message to a new subscription with another message.
none<Msg>() Sub<Msg>
Empty subscription.