flexPositionTypeFromValue function

FlexPositionType? flexPositionTypeFromValue(
  1. String? value
)

Implementation

FlexPositionType? flexPositionTypeFromValue(String? value) {
  if (value == null || value.isEmpty) {
    return null;
  }
  switch (value.replaceKey()) {
    case 'RELATIVE':
      return FlexPositionType.relative;
    case 'ABSOLUTE':
      return FlexPositionType.absolute;
    default:
      _convertError("flexPositionTypeFromInt Unknown enum value: $value");
      return null;
  }
}