getFromName static method

MaterialProperty? getFromName(
  1. String name
)

Implementation

static MaterialProperty? getFromName(String name){
  for(int i = 0; i < values.length;i++){
    if(values[i].name == name){
      return values[i];
    }
  }

  return null;
}