getByValue static method

FrameShapeType? getByValue(
  1. int? i
)

Implementation

static FrameShapeType? getByValue(int? i) {
  if (i == null) return null;
  try {
    return FrameShapeType.values.firstWhere((x) => x.value == i);
  } catch (_) {
    return FrameShapeType.UNKNOWN;
  }
}