equals method

bool equals(
  1. dynamic other
)

Implementation

bool equals(dynamic other) {
  /// Equality operator.
  if (other is! int && other is! Bip32KeyIndex) {
    return false;
  }

  if (other is int) {
    return index == other;
  }
  return index == other.index;
}