isValidChainId static method

bool isValidChainId(
  1. String value
)

Checks if the string is a chain

Implementation

static bool isValidChainId(String value) {
  if (value.contains(':')) {
    List<String> split = value.split(':');
    return split.length == 2;
  }
  return false;
}