findAccountInString static method

String? findAccountInString(
  1. int accountType,
  2. String account
)

Implementation

static String? findAccountInString(int accountType, String account) {
  assert(accountType == NanoAccountType.BANANO ||
      accountType == NanoAccountType.NANO ||
      accountType == NanoAccountType.PAW);
  assert(account != null);
  // Ensure regex match
  RegExp regEx = RegExp(NanoAccountType.getRegex(accountType));
  return regEx.stringMatch(account);
}