decodeBoxShape function

BoxShape decodeBoxShape(
  1. String name
)

Implementation

BoxShape decodeBoxShape(String name) {
  switch (name) {
    case 'circle':
      return BoxShape.circle;
    case 'rectangle':
      return BoxShape.rectangle;
    default:
      return BoxShape.rectangle;
  }
}