expand method
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);
}
}