openCurrentActionPane method
Opens the current ActionPane.
Implementation
Future<void> openCurrentActionPane({
Duration duration = _defaultMovementDuration,
Curve curve = _defaultCurve,
}) async {
double defaultExtentRatio;
switch (actionPaneType.value) {
case ActionPaneType.start:
defaultExtentRatio = _startActionPaneExtentRatio;
break;
case ActionPaneType.end:
defaultExtentRatio = _endActionPaneExtentRatio;
break;
case ActionPaneType.none:
defaultExtentRatio = kDefaultExtentRatio;
break;
}
final extentRatio =
actionPaneConfigurator?.extentRatio ?? defaultExtentRatio;
return openTo(
extentRatio,
duration: duration,
curve: curve,
);
}