fromString static method
Implementation
static ButtonShape fromString(String value) {
switch (value) {
case 'rounded':
return ButtonShape.rounded;
case 'square':
return ButtonShape.square;
case 'pill':
return ButtonShape.pill;
case 'outlined':
return ButtonShape.outlined;
default:
return ButtonShape.rounded;
}
}