createSimulation method

  1. @override
Simulation? createSimulation({
  1. required bool forward,
})
override

使用弹簧动画来驱动 animationController

Implementation

@override
Simulation? createSimulation({required bool forward}) {
  return ElDrawer.createSimulation(
    controller: animationController,
    velocity: forward ? 1.0 : -1.0,
  );
}