isValidAddress static method
Implementation
static bool isValidAddress(String address) {
if (!address.startsWith('0x')) return false;
if (address.length != 42) return false;
try {
EthereumAddress.fromHex(address);
return true;
} catch (e) {
return false;
}
}