read method

void read(
  1. void readFn(
    1. String line,
    2. bool skip
    )
)

Implementation

void read(void Function(String line, bool skip) readFn) {
  var skip = false;

  for (var line in this) {
    if (line.isEmbeddedCode) {
      skip = !skip;
    }
    readFn(line, skip);
  }
}