attributeScopeFromString function

AttributeScope attributeScopeFromString(
  1. String value
)

Implementation

AttributeScope attributeScopeFromString(String value) {
  return AttributeScope.values.firstWhere(
      (e) => e.toString().split('.')[1].toUpperCase() == value.toUpperCase());
}