setShorthandAnimation static method

void setShorthandAnimation(
  1. Map<String, String?> properties,
  2. String shorthandValue
)

Implementation

static void setShorthandAnimation(Map<String, String?> properties, String shorthandValue) {
  List<String?>? values = _getAnimationValues(shorthandValue);
  if (values == null) return;

  properties[ANIMATION_DURATION] = values[0]?.toLowerCase();
  properties[ANIMATION_TIMING_FUNCTION] = values[1]?.toLowerCase();
  properties[ANIMATION_DELAY] = values[2]?.toLowerCase();
  properties[ANIMATION_ITERATION_COUNT] = values[3]?.toLowerCase();
  properties[ANIMATION_DIRECTION] = values[4]?.toLowerCase();
  properties[ANIMATION_FILL_MODE] = values[5]?.toLowerCase();
  properties[ANIMATION_PLAY_STATE] = values[6]?.toLowerCase();
  properties[ANIMATION_NAME] = values[7];
}