fromString method
Implementation
double fromString(String size) {
if (size == "tighter") {
return -0.8;
} else if (size == "tight") {
return -0.4;
} else if (size == "normal") {
return 0.0;
} else if (size == "wide") {
return 0.4;
} else if (size == "wider") {
return 0.8;
} else if (size == "widest") {
return 1.6;
}
return 0.0;
}