resolveDisplay static method

CSSDisplay resolveDisplay(
  1. String? displayString
)

Implementation

static CSSDisplay resolveDisplay(String? displayString) {
  switch (displayString) {
    case 'none':
      return CSSDisplay.none;
    case 'sliver':
      return CSSDisplay.sliver;
    case 'block':
      return CSSDisplay.block;
    case 'inline-block':
      return CSSDisplay.inlineBlock;
    case 'flex':
      return CSSDisplay.flex;
    case 'inline-flex':
      return CSSDisplay.inlineFlex;
    case 'inline':
    default:
      return CSSDisplay.inline;
  }
}