isValidAccount static method

bool isValidAccount(
  1. String value
)

Checks if the string is an account

Implementation

static bool isValidAccount(String value) {
  if (value.contains(':')) {
    List<String> split = value.split(':');
    if (split.length == 3) {
      String chainId = '${split[0]}:${split[1]}';
      return split.length >= 2 && isValidChainId(chainId);
    }
  }
  return false;
}