header property

String get header

The hunk header as git prints it, for example @@ -12,7 +12,9 @@ class Foo. A count of 1 is left out: @@ -3 +3 @@.

Implementation

String get header =>
    '@@ -${_range(oldStart, oldCount)} +${_range(newStart, newCount)} @@'
    '${section.isEmpty ? '' : ' $section'}';