toString method

String toString()
override

Display a human-readable version of this Diff.

Returns a text version.

Implementation

String toString() {
  String prettyText = this.text.replaceAll('\n', '\u00b6');
  return 'Diff(${this.operation},"$prettyText")';
}