JsFeatures class base
Named bundle of environment patches, modules, and host methods.
A features installs one composable capability bundle into a runtime.
Constructors
-
JsFeatures({required String name, JsGlobals browserGlobals = const JsGlobals(), List<
JsScript> scripts = const <JsScript>[], List<JsModule> modules = const <JsModule>[], List<JsHostMethod> methods = const <JsHostMethod>[]}) -
Creates one named, composable runtime feature bundle.
const
Properties
- browserGlobals → JsGlobals
-
Browser-like global aliases installed before scripts.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
methods
→ List<
JsHostMethod> -
注入 JavaScript 的 Dart/Flutter 宿主方法。
final
-
modules
→ List<
JsModule> -
ES module and CommonJS definitions included in this features.
final
- name → String
-
Stable name used for conflict detection and debug inspection.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
scripts
→ List<
JsScript> -
Ordered scripts that complete the runtime global environment.
final
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