removeShorthandTransition static method

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

Implementation

static void removeShorthandTransition(CSSStyleDeclaration style, [bool? isImportant]) {
  if (style.contains(TRANSITION_PROPERTY)) style.removeProperty(TRANSITION_PROPERTY, isImportant);
  if (style.contains(TRANSITION_DURATION)) style.removeProperty(TRANSITION_DURATION, isImportant);
  if (style.contains(TRANSITION_TIMING_FUNCTION)) style.removeProperty(TRANSITION_TIMING_FUNCTION, isImportant);
  if (style.contains(TRANSITION_DELAY)) style.removeProperty(TRANSITION_DELAY, isImportant);
}