fromValue static method
Parses the value of the enum
Implementation
static MPBadgePosition fromValue(String value) {
switch (value) {
case "BOTTOM_RIGHT":
return MPBadgePosition.bottomRight;
case "BOTTOM_LEFT":
return MPBadgePosition.bottomLeft;
case "TOP_RIGHT":
return MPBadgePosition.topRight;
case "TOP_LEFT":
return MPBadgePosition.topLeft;
default:
throw ArgumentError(
"A MPBadgePosition scheme does not exist for the value $value");
}
}