getState method Null safety

Object? getState()

The state of the current browser history entry.

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

Implementation

Object? getState();