call method

  1. @override
void call(
  1. BuildContext param
)
override

Implementation

@override
void call(param) {
  final navigator = Navigator.of(param, rootNavigator: rootNavigator);
  if (popTimes != null) {
    for (var i = 0; i <= popTimes!; i++) {
      if (navigator.canPop()) navigator.pop(returnedParam);
    }
  } else {
    navigator.pop(returnedParam);
  }
}