SyncStream<T>.controller constructor

SyncStream<T>.controller({
  1. FutureOr<T>? initialValue,
  2. required String debugName,
  3. Consumer<T>? onChange,
})

This stream doesn't subscribe to an upstream branch for updates, but can still be updated.

Implementation

SyncStream.controller({FutureOr<T>? initialValue, required String debugName, Consumer<T>? onChange})
    : this._(current: initialValue, debugName: debugName, onChange: onChange);