bitcoinAddress property
Bitcoin Address
Consist of 26-35 (42 on bc1) alphanumeric characters. Starts with 1, 3, or bc1. It contains digits in the range of 0 to 9. The uppercase letter O and the uppercase letter I are not used to avoid visual ambiguity.
References: https://bitcoin.design/guide/glossary/address/ https://ihateregex.io/expr/bitcoin-address/ https://www.geeksforgeeks.org/regular-expression-to-validate-a-bitcoin-address/ https://en.bitcoin.it/wiki/Invoice_address
Implementation
static String bitcoinAddress =
r'^(?![13].{34,})(bc1|[13])[a-km-zA-HJ-NP-Z0-9]{25,39}$';