Notification<T>.onData constructor

Notification<T>.onData(
  1. T value
)

Constructs a Notification with Kind.OnData and wraps a value

Implementation

factory Notification.onData(T value) =>
    Notification<T>(Kind.OnData, value, null, null);