push method Null safety

dynamic push(
  1. {required Widget page}
)

Implementation

push({required Widget page}) {
  Navigator.push(this, MaterialPageRoute(builder: (context) => page));
}