value property

  1. @override
T value
override

Returns the last emitted value, failing if there is no value. See hasValue to determine whether value has already been set.

Throws ValueStreamError if this Stream has no value.

Implementation

@override
T get value => _value;
  1. @override
void value=(T newValue)
override

Set the value of this MutableStateStream. Also emits the newValue to all listeners if it is not equal to the current value.

Implementation

@override
set value(T newValue) => add(newValue);