fromValue static method

PlacementStrategy fromValue(
  1. String value
)

Implementation

static PlacementStrategy fromValue(String value) {
  for (final item in PlacementStrategy.values) {
    if (item.wireValue == value) {
      return item;
    }
  }
  throw ArgumentError('Unknown PlacementStrategy value: $value');
}