UcdParser.parseStream constructor

UcdParser.parseStream(
  1. Stream<String> fileStream,
  2. DataHandler onData, {
  3. CommentHandler? onComment,
  4. 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;
}