rowForFile method

int? rowForFile(
  1. int file
)

Finds the header row for a zero-based file index.

Implementation

int? rowForFile(int file) {
  for (final block in _blocks) {
    if (block.file == file) return block.start;
  }
  return null;
}