isValidChainId function

bool isValidChainId(
  1. String value
)

Implementation

bool isValidChainId(String value) {
  if (value.contains(":")) {
    final split = value.split(":");
    return split.length == 2;
  }
  return false;
}