fromValue static method

LayerDirective fromValue(
  1. String value
)

Implementation

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