effectiveTransitions property

Map<String, List> get effectiveTransitions

Implementation

Map<String, List> get effectiveTransitions {
  if (_effectiveTransitions != null) return _effectiveTransitions!;
  Map<String, List> transitions = {};

  for (int i = 0; i < transitionProperty.length; i++) {
    String property = _toCamelCase(transitionProperty[i]);
    String duration = transitionDuration.length == 1 ? transitionDuration[0] : transitionDuration[i];
    String function = transitionTimingFunction.length == 1 ? transitionTimingFunction[0] : transitionTimingFunction[i];
    String delay = transitionDelay.length == 1 ? transitionDelay[0] : transitionDelay[i];
    transitions[property] = [duration, function, delay];
  }
  return _effectiveTransitions = transitions;
}