removeShorthandAnimation static method

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

Implementation

static void removeShorthandAnimation(CSSStyleDeclaration style, [bool? isImportant]) {
  if (style.contains(ANIMATION_NAME)) style.removeProperty(ANIMATION_NAME, isImportant);
  if (style.contains(ANIMATION_DURATION)) style.removeProperty(ANIMATION_DURATION, isImportant);
  if (style.contains(ANIMATION_TIMING_FUNCTION)) style.removeProperty(ANIMATION_TIMING_FUNCTION, isImportant);
  if (style.contains(ANIMATION_DELAY)) style.removeProperty(ANIMATION_DELAY, isImportant);
  if (style.contains(ANIMATION_ITERATION_COUNT)) style.removeProperty(ANIMATION_ITERATION_COUNT, isImportant);
  if (style.contains(ANIMATION_DIRECTION)) style.removeProperty(ANIMATION_DIRECTION, isImportant);
  if (style.contains(ANIMATION_FILL_MODE)) style.removeProperty(ANIMATION_FILL_MODE, isImportant);
  if (style.contains(ANIMATION_PLAY_STATE)) style.removeProperty(ANIMATION_PLAY_STATE, isImportant);
}