fromPlaintext static method
Implementation
static BitcoinNetwork fromPlaintext(String plaintext) {
return BitcoinNetwork.values.firstWhere(
(network) => network.plaintext == plaintext,
orElse: () => BitcoinNetwork.mainnet,
);
}
static BitcoinNetwork fromPlaintext(String plaintext) {
return BitcoinNetwork.values.firstWhere(
(network) => network.plaintext == plaintext,
orElse: () => BitcoinNetwork.mainnet,
);
}