isValidEdgeType function

bool isValidEdgeType(
  1. String edgeType
)

Checks if an edge type is valid without throwing exceptions.

Implementation

bool isValidEdgeType(String edgeType) => _edgeTypePattern.hasMatch(edgeType);