isHermezEthereumAddress function

bool isHermezEthereumAddress(
  1. String? test
)

Checks if given string matches regex of a Hermez address

@param {String} test

@returns {bool}

Implementation

bool isHermezEthereumAddress(String? test) {
  if (test != null && hezEthereumAddressPattern.hasMatch(test)) {
    return true;
  }
  return false;
}