toPatch method
Convert a UnifiedDiff back to a Patch between the source and target files.
Implementation
@useResult
Patch<String> toPatch() => Patch([
for (final hunk in hunks) ...hunk.updates,
]);
Convert a UnifiedDiff back to a Patch between the source and target files.
@useResult
Patch<String> toPatch() => Patch([
for (final hunk in hunks) ...hunk.updates,
]);