checkBase58Address static method

bool checkBase58Address(
  1. String address,
  2. String regExp, [
  3. int length = 32
])

Implementation

static bool checkBase58Address(String address, String regExp,
    [int length = 32]) {
  try {
    if (!RegExp(regExp).hasMatch(address)) {
      return false;
    }
    return base58.decode(address).sublist(1).length >= length;
  } catch (error) {
    return false;
  }
}