fromValue static method

MPIconPlacement fromValue(
  1. String value
)

Parses the value of the enum

Implementation

static MPIconPlacement fromValue(String value) {
  switch (value) {
    case "CENTER":
      return MPIconPlacement.center;
    case "ABOVE":
      return MPIconPlacement.above;
    case "BELOW":
      return MPIconPlacement.below;
    case "LEFT":
      return MPIconPlacement.left;
    case "RIGHT":
      return MPIconPlacement.right;
    default:
      throw ArgumentError(
          "A MPIconPlacement scheme does not exist for the value $value");
  }
}