updatesSticky property

Stream<E?> get updatesSticky

Returns a broadcast stream that emits updates when the data changes, starting with any last emitted item first. null is a valid emitted item if E? is nullable or the item E is deleted.

Implementation

Stream<E?> get updatesSticky => (StreamGroup<E?>.broadcast()
      ..add(_hasEmittedItem ? Stream.value(_lastEmittedItem) : Stream.empty())
      ..add(_streamController.stream))
    .stream;