dart:ui_web library

Classes

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

Properties

assetManager AssetManager
Provides the AssetManager used by the Flutter Engine.
read-only
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.
final
urlStrategy UrlStrategy?
Returns the present UrlStrategy for handling the browser URL.
read / write

Functions

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.

Typedefs

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.