UcdParser.parseStream constructor
UcdParser.parseStream(
- Stream<
String> fileStream, - DataHandler onData, {
- CommentHandler? onComment,
- PartHandler? onPart,
Creates a new UCD Parser from a stream with the provided onData
callback.
Optionally, you can provide callbacks for Comments and Parts.
Implementation
factory UcdParser.parseStream(
Stream<String> fileStream,
DataHandler onData, {
CommentHandler? onComment,
PartHandler? onPart,
}) {
return UcdParser(onData, onComment: onComment, onPart: onPart).._ucdStream = fileStream;
}