fire_line_diff 1.5.5 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.
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));
}