isXAddress static method

bool isXAddress(
  1. String? address
)

Checks whether the given address is an X-Address.

Implementation

static bool isXAddress(String? address) {
  try {
    decodeXAddress(address!, null);
    return true;
  } catch (e) {
    return false;
  }
}