convert method
Implementation
Stream<String> convert() {
return LineSplitter().bind(Utf8Decoder().bind(file.openRead())).map((String line) {
// If the line does not require processing
if (!line.startsWith('SF:')) {
return line;
}
final thisPath = line.substring(3);
final resolvedPath = !p.isAbsolute(thisPath) //
? p.join(packagePath, thisPath)
: thisPath;
return 'SF:$resolvedPath';
});
}