isAddress method

bool isAddress(
  1. dynamic str
)

check if address is valid

Implementation

bool isAddress(str) {
  RegExp superReg = Address.basicAddress;
  return superReg.hasMatch(str);
}