Skip to content

diffText

ts
diffText(before: string, after: string, options?: DiffOptions): DiffResult
dart
DiffResult diffText(String before, String after, [DiffOptions? options]);

Compares two documents a line at a time, and marks what changed inside each pair of lines that was edited. DiffOptions is how the two are compared, and DiffResult is what comes back.

Released under the MIT License