A port of Google Diff Match and Patch library to Dart
import "package:diff_match_patch2/diff_match_patch.dart";
...
final dmp = DiffMatchPatch();
dmp.patch_main(oldText, newText);
PatchandDiffcan be jsonized. To decode, usePatch.fromJsonandDiff.fromJson.patch_mainin Google Diff Match and Patch library are split intopatch_main,patch_diffsandpatch_makefor strong types.