getImportedElements method
Return a description of all of the elements referenced in a given region of a given file that come from imported libraries.
If a request is made for a file that does not exist, or that is not
currently subject to analysis (e.g. because it is not associated with any
analysis root specified via analysis.setAnalysisRoots), an error of type
GET_IMPORTED_ELEMENTS_INVALID_FILE
will be generated.
Implementation
@experimental
Future<ImportedElementsResult> getImportedElements(
String? file, int? offset, int? length) {
final Map m = {'file': file, 'offset': offset, 'length': length};
return _call('analysis.getImportedElements', m)
.then(ImportedElementsResult.parse);
}