equals method

bool equals(
  1. LexoInteger other
)

Implementation

bool equals(LexoInteger other) {
  if (identical(this, other)) {
    return true;
  }

  // if (!other) {
  //   return false;
  // }

  return identical(sys.getBase(), other.sys.getBase()) &&
      identical(compareTo(other), 0);
}