JSRequire class
A JavaScript dependency to require()
at the beginning of the generated JS
file.
This allows each individual dependency to be configured to avoid loading it when it's not necessary.
Note that if jsEsmExports is set, ESM files with import
s are generated
in addition to CJS files with require()
.
Constructors
- JSRequire(String package, {String? identifier, JSRequireTarget? target})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- identifier → String
-
The global identifier to assign to the result of
require()
.final - package → String
-
The argument to the
require()
function.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- target → JSRequireTarget
-
The target in which to include this require.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited