static bool isAddressETH(String txt) { var reg = RegExp(r'^(0x)?[0-9a-fA-F]{40}$'); return reg.hasMatch(txt); }