isTestChain function

bool isTestChain(
  1. String value
)

Implementation

bool isTestChain(String value) {
  return value is String &&
      value.allMatches(r"/(Development|Local Testnet)$/").isNotEmpty;
}