typeFromString static method

EdgeArrowType typeFromString(
  1. String typeAsString
)

Implementation

static EdgeArrowType typeFromString(String typeAsString) {
  switch (typeAsString) {
    case "both":
      return EdgeArrowType.both;
    case "none":
      return EdgeArrowType.none;
    default:
      return EdgeArrowType.one;
  }
}