isAddressETH static method

bool isAddressETH(
  1. String txt
)

Implementation

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