asBroadcastStream method

  1. @nonVirtual
  2. @override
Stream<DictionaryEntry<V>> asBroadcastStream({
  1. void onListen(
    1. StreamSubscription<DictionaryEntry<V>> subscription
    )?,
  2. void onCancel(
    1. StreamSubscription<DictionaryEntry<V>> subscription
    )?,
})
override

Converting VendorDictionaryEntriesStream to broadcast Stream is forbidden. It throws UnsupportedError once it called.

Implementation

@nonVirtual
@override
Stream<DictionaryEntry<V>> asBroadcastStream(
    {void Function(StreamSubscription<DictionaryEntry<V>> subscription)?
        onListen,
    void Function(StreamSubscription<DictionaryEntry<V>> subscription)?
        onCancel}) {
  throw UnsupportedError("Convert to broadcast stream is not allowed.");
}