flexMeasureModeFromInt function

FlexMeasureMode flexMeasureModeFromInt(
  1. int value
)

Implementation

FlexMeasureMode flexMeasureModeFromInt(int value) {
  switch (value) {
    case 0:
      return FlexMeasureMode.undefined;
    case 1:
      return FlexMeasureMode.exactly;
    case 2:
      return FlexMeasureMode.atMost;
    default:
      throw ArgumentError("flexMeasureModeFromInt Unknown enum value: $value");
  }
}