pushCupertinoWidget method

void pushCupertinoWidget(
  1. Widget pushedWidget
)

Navigates to another screen by pushing the provided widget into the widget stack using the MaterialPageRoute animation.

Implementation

void pushCupertinoWidget(Widget pushedWidget) {
  resetFocus();

  /// Navigate to another widget by pushing it to
  /// the stack.
  Navigator.push(
    context,
    CupertinoPageRoute(
      builder: (context) => pushedWidget,
    ),
  );
}