LoadedResource class

Class representing a resource response of the WebView. It is used by the method PlatformWebViewCreationParams.onLoadResource.

Constructors

LoadedResource({double? duration, String? initiatorType, double? startTime, WebUri? url})

Properties

duration double?
Returns the DOMHighResTimeStamp duration to fetch a resource.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
initiatorType String?
A string representing the type of resource.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startTime double?
Returns the DOMHighResTimeStamp for the time a resource fetch started.
getter/setter pair
url WebUri?
Resource URL.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts instance to a map.
toMap() Map<String, dynamic>
Converts instance to a map.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromMap(Map<String, dynamic>? map) LoadedResource?
Gets a possible LoadedResource instance from a Map value.