/diff-match-patch

A port of Google Diff Match and Patch library to Dart

Primary LanguageDartApache License 2.0Apache-2.0

Diff, Match and Patch

A port of Google Diff Match and Patch library to Dart

Usage

import "package:diff_match_patch2/diff_match_patch.dart";

...
  final dmp = DiffMatchPatch();
  dmp.patch_main(oldText, newText);
  • Patch and Diff can be jsonized. To decode, use Patch.fromJson and Diff.fromJson.
  • patch_main in Google Diff Match and Patch library are split into patch_main, patch_diffs and patch_make for strong types.

Who Uses

  • Quire - a simple, collaborative, multi-level task management tool.
  • Keikai - a sophisticated spreadsheet for big data