flexDisplayFromValue function

FlexDisplay? flexDisplayFromValue(
  1. String? value
)

Implementation

FlexDisplay? flexDisplayFromValue(String? value) {
  if (value == null || value.isEmpty) {
    return null;
  }
  switch (value.replaceKey()) {
    case 'DISPLAY_FLEX':
      return FlexDisplay.displayFlex;
    case 'DISPLAY_NONE':
      return FlexDisplay.displayNode;
    default:
      _convertError("flexDisplayFromInt Unknown enum value: $value");
      return null;
  }
}