equals method

  1. @override
bool equals(
  1. Object other, {
  2. bool strict = false,
})
override

Implementation

@override
bool equals(Object other, {bool strict = false}) {
  if (identical(this, other)) return true;

  if (other is ASTTypeInt && runtimeType == other.runtimeType) {
    if (strict || (bits != null && other.bits != null)) {
      return bits == other.bits;
    }

    return true;
  }

  return false;
}