removeShorthandInset static method

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

Implementation

static void removeShorthandInset(CSSStyleDeclaration style, [bool? isImportant]) {
  if (style.contains(TOP)) style.removeProperty(TOP, isImportant);
  if (style.contains(RIGHT)) style.removeProperty(RIGHT, isImportant);
  if (style.contains(BOTTOM)) style.removeProperty(BOTTOM, isImportant);
  if (style.contains(LEFT)) style.removeProperty(LEFT, isImportant);
}