equals method

bool equals(
  1. dynamic other
)

Equality operator.

Implementation

bool equals(dynamic other) {
  if (other is! int && other is! Bip32Depth) {
    return false;
  }

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