setShorthandTransition static method

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

Implementation

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

  properties[TRANSITION_PROPERTY] = values[0];
  properties[TRANSITION_DURATION] = values[1];
  properties[TRANSITION_TIMING_FUNCTION] = values[2];
  properties[TRANSITION_DELAY] = values[3];
}