getFixes method

Future<FixesResult> getFixes(
  1. String? file,
  2. int? offset
)

Return the set of fixes that are available for the errors at a given offset in a given file.

If a request is made for a file which does not exist, or which is not currently subject to analysis (e.g. because it is not associated with any analysis root specified to analysis.setAnalysisRoots), an error of type GET_FIXES_INVALID_FILE will be generated.

Implementation

Future<FixesResult> getFixes(String? file, int? offset) {
  final Map m = {'file': file, 'offset': offset};
  return _call('edit.getFixes', m).then(FixesResult.parse);
}