CodeActionsProvider class
Provides code actions (quick fixes and refactoring suggestions).
Code actions are returned in response to diagnostics and allow users to apply automated fixes or refactoring.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
applyCodeAction(
{required String filePath, required CodeAction action}) → Future< TextEdit?> - Applies a code action edit to the document.
-
getCodeActions(
{required String filePath, required Range range, required List< Diagnostic> diagnostics}) → Future<List< CodeAction> > - Returns code actions for the given range and diagnostics.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited