generateContent abstract method

Future<void> generateContent(
  1. DictionaryEntryStreamAdder<V> add,
  2. DictionaryEntryStreamThrower addError
)

Process when listen called and prepare to generate content to StreamSubscription.

Normally, the content of DictionaryEntry will be streamed by calling add. When duplicated key called with various DictionaryEntry, add will only accept the latest called parameter. Once this process has been completed, all applied DictionaryEntry will be yield without considering sequence.

When error occured during generate content, attach caught object into addError, which no longer stream any added DictionaryEntry.

Implementation

Future<void> generateContent(
    DictionaryEntryStreamAdder<V> add, DictionaryEntryStreamThrower addError);