RouterPage constructor

const RouterPage({
  1. Key? key,
  2. required Widget child,
  3. Future<bool> onWillPop()?,
})

Wrap your screen widget with this to properly implement popping with system back button.

Implementation

const RouterPage({
  Key? key,
  required this.child,
  this.onWillPop,
}) : super(key: key);