getFoldingRequest method

  1. @override
Future<FoldingRequest> getFoldingRequest(
  1. String path
)
override

Return the folding request that should be passes to the contributors returned from getFoldingContributors.

Throw a RequestFailure if the request could not be created.

Implementation

@override
Future<FoldingRequest> getFoldingRequest(String path) async {
  var result = await getResolvedUnitResult(path);
  return DartFoldingRequestImpl(resourceProvider, result);
}