AMDJS class

JavaScript AMD (Asynchronous Module Definition) Dart interoperability.

Constructors

AMDJS()

Properties

hashCode int
The hash code for this object.
no setterinherited
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

Static Properties

verbose bool
verbose: If true logs usage to console.
getter/setter pair

Static Methods

isNativeImplementationPresent() Future<bool>
Returns true if native JS AMD is detected:
load() Future<bool>
Ensures that this class and JS interoperability is loaded. You don't need to call this function, since it's already called internally by the API.
require(dynamic modules, {String? jsFullPath, String? jsLocation, String? jsSubPath, String? globalJSVariableName, bool addScriptTagInsideBody = false}) Future<bool>
Requires a module that can be found at jsFullPath. Returns true if OK.
requireNativeByPackage(List<String> modules, String jsLocation, dynamic jsSubPath, {String? globalJSVariableName}) Future<bool>
Tries to load a module using native AMD using package/module configuration. Is recommended to use the function require, that calls requireNative only if is really needed.
requireNativeByPath(String module, String jsFullPath, {String? globalJSVariableName}) Future<bool>
Tries to load a module using native AMD using jsFullPath. Is recommended to use the function require, that calls requireNative only if is really needed.