isValidAccountId function

bool isValidAccountId(
  1. String value
)

Implementation

bool isValidAccountId(String value) {
  if (value.contains(":")) {
    final split = value.split(":");
    if (split.length == 3) {
      final chainId = '${split[0]}:${split[1]}';
      return split[2].isNotEmpty && isValidChainId(chainId);
    }
  }
  return false;
}