goRemoved method

Future goRemoved(
  1. Widget page
)

Implementation

Future goRemoved(Widget page) {
  if (isKeyboardOpened) {
    hideKeyboard;
    return afterDelay(
        function: () =>
            navigator.pushAndRemoveUntil(route(page), (_) => false));
  } else {
    return navigator.pushAndRemoveUntil(route(page), (_) => false);
  }
}