ContentsquareWebViewController class

A class which contains the methods that are needed to communicate with the webview.

Constructors

ContentsquareWebViewController({required Future<String> evaluateJavascript(String javaScriptString), required String javascriptChannelCall(String channelName, String data), Future<String?> currentUrl()?, Future<bool> isChannelAvailable(String channelName)?})
Builds a ContentsquareWebViewController

Properties

currentUrl → (Future<String?> Function()?)
Returns the current url of the webview.
final
evaluateJavascript Future<String> Function(String javaScriptString)
Calls javascriptString in the webview and returns the result.
final
hashCode int
The hash code for this object.
no setterinherited
isChannelAvailable → (Future<bool> Function(String channelName)?)
Returns true when the channel is available.
final
javascriptChannelCall String Function(String channelName, String data)
Returns a String which can be used in evaluateJavascript to call the channel with the given data.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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