getBoxShape method

BoxShape? getBoxShape(
  1. String? value
)

Implementation

BoxShape? getBoxShape(String? value) {
  if (value == null) return null;
  switch (value) {
    case "circle":
      return BoxShape.circle;
    default:
      return BoxShape.rectangle;
  }
}