isValidNetwork function

bool isValidNetwork(
  1. String networkPrefix
)

Validates whether the network passed in is valid

Implementation

bool isValidNetwork(String networkPrefix) {
  return validNetworks.contains(networkPrefix);
}