Revert "[web] Migrate Flutter Web to JS static interop - 14. (#32683)" (flutter/engine#32919)
This reverts commit 433198af5f.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user