CallAsyncJavaScriptResult class

Class that represents either a success or a failure, including an associated value in each case for PlatformInAppWebViewController.callAsyncJavaScript.

Constructors

CallAsyncJavaScriptResult({String? error, dynamic value})

Properties

error String?
It contains the failure value.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value ↔ dynamic
It contains the success value.
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) CallAsyncJavaScriptResult?
Gets a possible CallAsyncJavaScriptResult instance from a Map value.