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