equals method

bool equals(
  1. dynamic compare
)

Implementation

bool equals(dynamic compare) {
  return this != null &&
      this == compare &&
      runtimeType == compare.runtimeType;
}