removeShorthandFlex static method

void removeShorthandFlex(
  1. CSSStyleDeclaration style, [
  2. bool? isImportant
])

Implementation

static void removeShorthandFlex(CSSStyleDeclaration style, [bool? isImportant]) {
  if (style.contains(FLEX_GROW)) style.removeProperty(FLEX_GROW, isImportant);
  if (style.contains(FLEX_SHRINK)) style.removeProperty(FLEX_SHRINK, isImportant);
  if (style.contains(FLEX_BASIS)) style.removeProperty(FLEX_BASIS, isImportant);
}