openFooterSecondary method
Open footer secondary.
duration
See ScrollPosition.animateTo.
curve
See ScrollPosition.animateTo.
Implementation
Future openFooterSecondary({
Duration? duration = const Duration(milliseconds: 200),
Curve curve = Curves.linear,
}) async {
if (_state == null) {
return;
}
if (_state!._footer.secondaryTriggerOffset != null) {
final footerNotifier = _state!._footerNotifier;
if (footerNotifier.modeLocked ||
footerNotifier.noMoreLocked ||
footerNotifier.secondaryLocked ||
!footerNotifier._canProcess) {
return;
}
await footerNotifier.animateToOffset(
offset: footerNotifier.secondaryDimension,
mode: IndicatorMode.secondaryOpen,
jumpToEdge: false,
duration: duration,
curve: curve,
);
}
}