decodeAddress static method

DecodeAddressResult decodeAddress(
  1. String address
)

Implementation

static DecodeAddressResult decodeAddress(String address) {
  if (isFriendly(address)) {
    return fromFriendlyAddress(address);
  } else if (isRaw(address)) {
    return fromRawAddress(address);
  } else {
    throw AddressConverterException('Unknown address type.',
        details: {"address": address});
  }
}