WindowRegisterAppParams class
Constructors
-
WindowRegisterAppParams({String? kind, String? javascriptString, String? url, Map<
String, Object> ? appOptions, String? variable}) -
WindowRegisterAppParams.localJs({required String kind, required String javascriptString, required String variable, Map<
String, Object> ? appOptions}) -
WindowRegisterAppParams.remoteJs({required String url, required String kind, Map<
String, Object> ? appOptions})
Properties
-
appOptions
↔ Map<
String, Object> ? -
初始化 app 实例时,会被传入的参数。这段配置不会被同步其他端,属于本地设置。常常用来设置 debug 的开关。
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- javascriptString ↔ String?
-
用本地 js 代码注册
getter/setter pair
- kind ↔ String?
-
注册的 app 名称
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- url ↔ String?
-
用发布包代码注册
getter/setter pair
- variable ↔ String?
-
挂载在 window 上的变量名,挂在后为 window.variable
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited