previous method

  1. @override
Future<void> previous({
  1. bool waitCurrentEnd = true,
  2. bool currentEndWithAnimation = true,
  3. FutureCallback? onCurrentEndComplete,
})
override

waitCurrentEnd - 是否等待當前步驟關閉後再跳上個步驟 currentEndWithAnimation - 關閉當前步驟是否有動畫 onCurrentEndComplete - 當前步驟完全關閉後回調, 若需要在此執行等待操作, 可以在此回傳Future, 當waitCurrentEnd為true時有效

Implementation

@override
Future<void> previous({
  bool waitCurrentEnd = true,
  bool currentEndWithAnimation = true,
  FutureCallback? onCurrentEndComplete,
}) async {
  if (_client == null) {
    return;
  }
  return _client!.previous(
    waitCurrentEnd: waitCurrentEnd,
    currentEndWithAnimation: currentEndWithAnimation,
    onCurrentEndComplete: onCurrentEndComplete,
  );
}