findAccountInString static method
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);
}