fromString static method

ButtonShape fromString(
  1. String value
)

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;
  }
}