forEachEvent method
Future
forEachEvent({
- EventHandler<
XmlCDATAEvent> ? onCDATA, - EventHandler<
XmlCommentEvent> ? onComment, - EventHandler<
XmlDeclarationEvent> ? onDeclaration, - EventHandler<
XmlDoctypeEvent> ? onDoctype, - EventHandler<
XmlEndElementEvent> ? onEndElement, - EventHandler<
XmlProcessingEvent> ? onProcessing, - EventHandler<
XmlStartElementEvent> ? onStartElement, - EventHandler<
XmlTextEvent> ? onText,
Executes the provided callbacks on each event of this stream.
Completes the returned Future when all events of this stream have been processed.
Implementation
Future forEachEvent({
EventHandler<XmlCDATAEvent>? onCDATA,
EventHandler<XmlCommentEvent>? onComment,
EventHandler<XmlDeclarationEvent>? onDeclaration,
EventHandler<XmlDoctypeEvent>? onDoctype,
EventHandler<XmlEndElementEvent>? onEndElement,
EventHandler<XmlProcessingEvent>? onProcessing,
EventHandler<XmlStartElementEvent>? onStartElement,
EventHandler<XmlTextEvent>? onText,
}) =>
forEach(_XmlForEachEventHandler(
onCDATA: onCDATA,
onComment: onComment,
onDeclaration: onDeclaration,
onDoctype: onDoctype,
onEndElement: onEndElement,
onProcessing: onProcessing,
onStartElement: onStartElement,
onText: onText,
));