call method

Widget call(
  1. Widget child,
  2. AnimationController controller,
  3. AlignmentGeometry alignment
)

调用方法,通过调用子类实现的 buildWidget 构建动画组件

Implementation

Widget call(
    Widget child, // 子组件
    AnimationController controller, // 动画控制器
    AlignmentGeometry alignment, // 对齐方式
) {
    return buildWidget(
        child,
        controller,
        alignment,
    );
}