CodeAction class

A code action that can be applied to fix or refactor code.

Constructors

CodeAction({required String title, required CodeActionKind kind, Diagnostic? diagnostic, bool isPreferred = false, List<TextEdit>? edits, CodeCommand? command})
const

Properties

command → CodeCommand?
Optional command to execute.
final
diagnostic → Diagnostic?
The diagnostic this action addresses.
final
edits → List<TextEdit>?
Optional text edits to apply.
final
hashCode → int
The hash code for this object.
no setterinherited
isPreferred → bool
Whether this is the preferred action for the diagnostic.
final
kind → CodeActionKind
The kind of action (quickfix, refactor, etc).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
title → String
The display title for this action.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited