equals method

bool equals(
  1. Object? other
)

Implementation

bool equals(Object? other) {
  return ((other == null && this == null) ||
      ((other != null && this != null) && (other == this)));
}