fire_line_diff 1.5.5 copy "fire_line_diff: ^1.5.5" to clipboard
fire_line_diff: ^1.5.5 copied to clipboard

A dart line diff tool. Objects are converted into strings and these strings are then compared line by line.

example/README.md

Basic usage #

We can compare various objects by passing them inside [FireLineDiff.diff] method. Result contains changes on both sides and count of changes.

void main() {
  var a = [
    'class GitException implements Exception {}',
    '',
    'class GitNotFound implements GitException {}',
  ];

  var b = [
    'class GitNotFound implements GitException {}',
    '',
    'class InvalidRepoException implements GitException {'
  ];

  final result = FireLineDiff.diff(a, b);

  print(result.length == equals(5));
}
1
likes
160
points
325
downloads

Publisher

verified publishersedlardavid.cz

Weekly Downloads

A dart line diff tool. Objects are converted into strings and these strings are then compared line by line.

Repository (GitHub)

Documentation

API reference

License

ISC (license)

More

Packages that depend on fire_line_diff