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