go method Null safety

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.

Examples:

  • 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

Implementation

external Future<void> go(int count);