Bip44Levels.fromInt constructor
Bip44Levels.fromInt(
- int value
Factory method to create a Bip44Levels instance from an integer. Create a Bip44Levels instance from an integer value.
Implementation
/// Create a [Bip44Levels] instance from an integer value.
factory Bip44Levels.fromInt(int value) {
return values.firstWhere(
(e) => e.value == value,
orElse:
() =>
throw ArgumentException.invalidOperationArguments(
"Bip44Levels",
reason: "Invalid BIP-44 depth.",
),
);
}