flexMeasureModeFromValue function
Implementation
FlexMeasureMode? flexMeasureModeFromValue(String? value) {
if (value == null || value.isEmpty) {
return null;
}
switch (value.replaceKey()) {
case 'UNDEFINED':
return FlexMeasureMode.undefined;
case 'EXACTLY':
return FlexMeasureMode.exactly;
case 'AT_MOST':
return FlexMeasureMode.atMost;
default:
_convertError("flexMeasureModeFromInt Unknown enum value: $value");
return null;
}
}