loadModule method
LoadedModule
loadModule(})
override
Loads a module from the given URI.
uri The resolved URI of the module to load (package:, dart:, or file:).
showNames Optional set of names to show (import ... show x, y).
hideNames Optional set of names to hide (import ... hide x, y).
Returns a LoadedModule containing the AST and exported environment.
Throws RuntimeD4rtException if the module cannot be loaded.
Implementation
@override
context.LoadedModule loadModule(
Uri uri, {
Set<String>? showNames,
Set<String>? hideNames,
}) {
return loadModuleInternal(
uri,
showNames: showNames,
hideNames: hideNames,
).toContextLoadedModule();
}