go method Null safety

  1. @override
Future<void> go(
  1. int count

Moves forwards or backwards through the history stack.

A negative count value causes a backward move in the history stack. And a positive count value causes a forward move.


  • go(-2) moves back 2 steps in history.
  • go(3) moves forward 3 steps in history.

See: https://developer.mozilla.org/en-US/docs/Web/API/History/go


Future<void> go(int count) {
  return _waitForPopState();