includeReplacedIndex property

bool includeReplacedIndex
final

To exclude the index from modified content. Set includeReplacedIndex to false.
eg:

CodeForge(
  gutterBuilder: GutterBuilder(
    includeReplacedIndex: false,
    builder: (lineNumber, lineText) => if(lineNumber == 1) "[HEADER]" : null
  )
)

Result:

[HEADER]|   import os
   1    |   import sys  # index `1` is included in the gutter.
   2    |
   3    |   def main():
   4    |        pass

Implementation

final bool includeReplacedIndex;