isValid static method

bool isValid(
  1. String address
)

Implementation

static bool isValid(String address) {
  try {
    var a = Address.parse(address);
    return a.toString() == address;
  } catch (_) {
    return false;
  }
}