replaceState method Null safety

  1. @override
void replaceState(
  1. Object? state,
  2. String title,
  3. String url
)
override

Replace the currently active history entry.

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

Implementation

@override
void replaceState(Object? state, String title, String url) {
  _platformLocation.replaceState(state, title, prepareExternalUrl(url));
}