Revert "[web] Migrate Flutter Web to JS static interop - 14. (#32683)" (flutter/engine#32919)

This reverts commit 433198af5f.
This commit is contained in:
Zachary Anderson
2022-04-25 19:37:53 -07:00
committed by GitHub
parent 0aa26bb1cf
commit c09bd83900

View File

@@ -29,7 +29,6 @@ typedef _HistoryMove = Future<void> Function(int count);
/// bridge from the app to the engine.
@JS()
@anonymous
@staticInterop
abstract class JsUrlStrategy {
/// Creates an instance of [JsUrlStrategy] from a bag of URL strategy
/// functions.
@@ -42,9 +41,7 @@ abstract class JsUrlStrategy {
required _StateOperation replaceState,
required _HistoryMove go,
});
}
extension JsUrlStrategyExtension on JsUrlStrategy {
/// Adds a listener to the `popstate` event and returns a function that, when
/// invoked, removes the listener.
external ui.VoidCallback addPopStateListener(html.EventListener fn);