WindowBehavior class
Defines behavior of the browser APIs (such as navigation events).
Example
import 'package:universal_html/parsing.dart';
Future<void> main() async {
final controller = WindowController();
await controller.openHttp(
method: 'GET',
uri: Uri.parse('https://www.ietf.org/'),
);
final document = controller.window.document;
// ...
}
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
beforeElementAttributeMutation(
{required Element element, required String attributeName, required String? oldValue, required String? newValue}) → void - Intercepts DOM element attribute mutations.
-
beforeElementChildrenMutation(
{required Element element}) → void - Intercepts DOM text changes.
-
beforeNodeAttached(
{required Node node}) → void - Intercepts DOM node attachment operations.
-
beforeNodeDetached(
{required Node node}) → void - Intercepts DOM node detachments operations.
-
handleEventDefault(
EventTarget eventTarget, Event event) → void - Called by EventTarget when default behavior of an event should occur.
-
handleFileUploadInputElementClick(
FileUploadInputElement element, Event event) → void - Called when FileUploadInputElement is clicked.
-
newDocument(
{required Window window, String contentType = 'text/html', bool filled = true}) → Document - Method used for constructing new Document object.
-
newInternalElementData(
{required Element element}) → InternalElementData - Constructs new Navigator object.
-
newWindow(
{required WindowController windowController}) → Window -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited