KernelAssetRelativePath class

Asset at relative path uri, relative to the 'dart file' executed.

The 'dart file' executed can be one of the following:

  1. The .dart file when executing dart path/to/script.dart.
  2. The .kernel file when executing from a kernel file.
  3. The .aotsnapshot file when executing from an AOT snapshot with the Dart AOT runtime.
  4. The executable when executing a Dart app compiled with dart compile exe to a single file.

Note when writing your own embedder, make sure the Dart_CreateIsolateGroup or similar calls set up the script_uri parameter correctly to ensure relative path resolution works.

Implemented types

Constructors

KernelAssetRelativePath(Uri uri)

Properties

hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
uri Uri
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() List<String>
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
override