cascadeAnimationStyle method

void cascadeAnimationStyle(
  1. LayoutStyleInterpolation inheritedInterpolation,
  2. KeyFrameInterpolator? inheritedInterpolator,
  3. double inheritedInterpolationTime
)
inherited

Implementation

void cascadeAnimationStyle(
    LayoutStyleInterpolation inheritedInterpolation,
    KeyFrameInterpolator? inheritedInterpolator,
    double inheritedInterpolationTime) {
  if (style?.animationStyle == LayoutAnimationStyle.inherit) {
    setInheritedInterpolation(inheritedInterpolation, inheritedInterpolator,
        inheritedInterpolationTime);
  } else {
    clearInheritedInterpolation();
  }
  forEachChild((child) {
    if (child is LayoutComponent) {
      child.cascadeAnimationStyle(
          interpolation, interpolator, interpolationTime);
    }
    return false;
  });
}