pushResume static method

void pushResume(
  1. BuildContext context,
  2. Widget page,
  3. ResumableState<StatefulWidget> resume
)

this make librasry "need_resume" working with push to next page

Implementation

static void pushResume(BuildContext context, Widget page, ResumableState resume ) {
  var materialPageRoute = MaterialPageRoute(builder: (context) => page);
  resume.push( context, materialPageRoute );
}