UcdParser.parseFile constructor
UcdParser.parseFile(
- String filePath,
- DataHandler onData, {
- CommentHandler? onComment,
- PartHandler? onPart,
Creates a new UCD Parser from a file with the provided onData
callback.
Optionally, you can provide callbacks for Comments and Parts.
Implementation
factory UcdParser.parseFile(
String filePath,
DataHandler onData, {
CommentHandler? onComment,
PartHandler? onPart,
}) {
return UcdParser(onData, onComment: onComment, onPart: onPart)
.._ucdStream = File(filePath).openRead().transform(utf8.decoder).transform(const LineSplitter());
}