fromValue static method

MPStrokeStyle fromValue(
  1. String value
)

Parses MPStrokeStyle value of the enum

Implementation

static MPStrokeStyle fromValue(String value) {
  switch (value) {
    case "solid":
      return MPStrokeStyle.solid;
    case "dashed":
      return MPStrokeStyle.dashed;
    case "dotted":
      return MPStrokeStyle.dotted;
    default:
      throw ArgumentError(
          "A MPStrokeStyle does not exist for the value $value");
  }
}