isEthereumAddress function

bool isEthereumAddress(
  1. String test
)

Checks if given string matches regex of a Ethereum address

@param {String} test

@returns {bool}

Implementation

bool isEthereumAddress(String test) {
  if (test != null && ethereumAddressPattern.hasMatch(test)) {
    return true;
  }
  return false;
}