push method

dynamic push(
  1. BuildContext context,
  2. Widget page
)

Implementation

push(BuildContext context, Widget page) {
  try {
    Navigator.of(context).push(
      MaterialPageRoute(
        builder: (context) {
          return page;
        },
      ),
    );
  } catch (e) {}
}