equals method

  1. @override
bool equals(
  1. Either<A, B> x,
  2. Either<A, B> y
)
override

Returns true if the two values are equal according to the compare function.

Implementation

@override
bool equals(Either<A, B> x, Either<A, B> y) => compare(x, y) == 0;