dart:ui_web library


This class downloads assets over the network.
Delegates to real browser APIs to provide platform location functionality.
This is an implementation of UrlStrategy that uses the browser URL's hash fragments to represent its state.
Encapsulates all calls to DOM apis, which allows the UrlStrategy classes to be platform agnostic and testable.
A registry for factories that create platform views.
Represents and reads route state from the browser's URL.


assetManager AssetManager
Provides the AssetManager used by the Flutter Engine.
debugDefaultUrlStrategyOverride UrlStrategy?
Overrides the default URL strategy.
read / write
debugEmulateFlutterTesterEnvironment bool
Whether the Flutter engine is running in flutter test emulation mode.
read / write
isCustomUrlStrategySet bool
Whether a custom URL strategy has been set or not.
read / write
platformViewRegistry PlatformViewRegistry
The platform view registry for this app.
urlStrategy UrlStrategy?
Returns the present UrlStrategy for handling the browser URL.
read / write


bootstrapEngine({VoidCallback? registerPlugins, VoidCallback? runApp}) Future<void>
Bootstraps the Flutter Web engine and app.
debugResetCustomUrlStrategy() → void
Resets everything to do with custom URL strategy.
preventCustomUrlStrategy() → void
From this point on, prevents setting a custom URL strategy.
setPluginHandler(PlatformMessageCallback handler) → void
Sets the handler that forwards platform messages to web plugins.


EventListener = dynamic Function(Object event)
Function type that handles pop state events.
ParameterizedPlatformViewFactory = Object Function(int viewId, {Object? params})
A function which takes a unique id and some params and creates an HTML element.
PlatformViewFactory = Object Function(int viewId)
A function which takes a unique id and creates an HTML element.
PopStateListener = void Function(Object? state)
Callback that receives the new state of the browser history entry.