equals method

  1. @Possible({StackOverflowError})
  2. @useResult
bool equals(
  1. Object? other
)

Determines if this and other are deeply equal.

This function is unlike MapEntry.== which is identity-based.

Contract

A StackOverflowError is thrown if this or other contain themselves.

Implementation

@Possible({StackOverflowError})
@useResult bool equals(Object? other) => Equality.deep(this, other);