A2uiStreamParser constructor

A2uiStreamParser({
  1. required A2uiCatalog catalog,
  2. A2uiValidateMode validate = A2uiValidateMode.strict,
  3. Iterable<A2uiEnvelope> history = const [],
})

Creates an A2uiStreamParser.

history is every A2UI message the client already received, in order. Blocks are checked against the surfaces it leaves live, so a block may update one of them (a block without root targets an existing surface).

Implementation

A2uiStreamParser({
  required A2uiCatalog catalog,
  A2uiValidateMode validate = A2uiValidateMode.strict,
  Iterable<A2uiEnvelope> history = const [],
}) : this.internal(catalog: catalog, validate: validate, history: history);