isAlgorandAddress static method

bool isAlgorandAddress(
  1. String address
)

Check if the given address is a valid Algorand address.

Implementation

static bool isAlgorandAddress(String address) {
  try {
    decodeAddress(address);
    return true;
  } catch (ex) {
    return false;
  }
}