fromMsgStream<Msg> static method

SubItem<Msg> fromMsgStream<Msg>(
  1. SubscriptionId id,
  2. Stream<Msg?> stream
)

Creates a subscription from a stream, using the stream objects as messages.

Implementation

static SubItem<Msg> fromMsgStream<Msg>(
        SubscriptionId id, Stream<Msg?> stream) =>
    fromStream<Msg, Msg?>(id, stream, (msg) => msg);