values property Null safety

List<T> values
override

Synchronously get the values stored in Subject. May be empty.

Implementation

@override
List<T> get values => _queue
    .where((event) => !event.isError)
    .map((event) => event.data!.value)
    .toList(growable: false);