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