onImport property

void Function(D4rtExecutionContext context, Uri library)? onImport
final

Before a library is loaded for this run (the entry library's imports and theirs), once per library. Throw to refuse it; the run fails there.

Implementation

final void Function(D4rtExecutionContext context, Uri library)? onImport;