expand method

Future<void> expand(
  1. int index, {
  2. Curve curve = Curves.easeInOut,
  3. Duration duration = const Duration(milliseconds: 150),
})

expand the index item to occupy the entire SlideActionPanel

Implementation

Future<void> expand(
  int index, {
  Curve curve = Curves.easeInOut,
  Duration duration = const Duration(milliseconds: 150),
}) async {
  if (_index != index) {
    _index = index;
    _animationController.reset();
    // await _animationController.animateTo(1, curve: curve, duration: duration);
    await _animationController.fling(velocity: 1);
  }
}