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
140
pub points
44%
popularity

Publisher

verified publishersedlardavid.cz

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

ISC (LICENSE)

More

Packages that depend on fire_line_diff