operator == method

  1. @override
bool operator ==(
  1. Object other
)
override

Is this Diff equivalent to another Diff?

other is another Diff to compare against.

Returns true or false.

Implementation

@override
bool operator ==(Object other) =>
    identical(this, other) ||
    other is Diff &&
        runtimeType == other.runtimeType &&
        operation == other.operation &&
        text == other.text;