flutter_esjsbridge class
WebView与h5进行通信
Constructors
- flutter_esjsbridge(String method, Map data, Function success, Function error)
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map - jsonEncode方法中会调用实体类的这个方法。如果实体类中没有这个方法,会报错。
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
platformVersion
→ Future<
String?> -
no setter
Static Methods
-
fromMap(
Map< String, dynamic> map) → flutter_esjsbridge - jsonDecode(jsonStr)方法返回的是Map<String, dynamic>类型,需要这里将map转换成实体类