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