UnifiedDiffHeader.custom constructor

const UnifiedDiffHeader.custom({
  1. String? sourceLineStart,
  2. String? targetLineStart,
  3. required String sourceLineContent,
  4. required String targetLineContent,
})

Create a custom UnifiedDiffHeader with sourceLineContent and targetLineContent, and optionally a custom sourceLineStart and targetLineStart.

Implementation

const factory UnifiedDiffHeader.custom({
  final String? sourceLineStart,
  final String? targetLineStart,
  required final String sourceLineContent,
  required final String targetLineContent,
}) = _CustomUnifiedDiffHeader;