removeShorthandPadding static method

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

Implementation

static void removeShorthandPadding(CSSStyleDeclaration style, [bool? isImportant]) {
  if (style.contains(PADDING_LEFT)) style.removeProperty(PADDING_LEFT, isImportant);
  if (style.contains(PADDING_TOP)) style.removeProperty(PADDING_TOP, isImportant);
  if (style.contains(PADDING_RIGHT)) style.removeProperty(PADDING_RIGHT, isImportant);
  if (style.contains(PADDING_BOTTOM)) style.removeProperty(PADDING_BOTTOM, isImportant);
}