Bip32Depth constructor

Bip32Depth(
  1. int depth
)

Implementation

factory Bip32Depth(int depth) {
  try {
    return Bip32Depth._(depth.asU8);
  } catch (_) {
    throw ArgumentException.invalidOperationArguments(
      "Bip32Depth",
      name: "depth",
      reason: "Invalid depth",
    );
  }
}