disabled property

dynamic get disabled

Marks that the code action cannot currently be applied.

  • Disabled code actions are not shown in automatic lightbulb code action menu.

  • Disabled actions are shown as faded out in the code action menu when the user request a more specific type of code action, such as refactorings.

  • If the user has a keybinding that auto applies a code action and only a disabled code actions are returned, the editor will show the user an error message with reason in the editor.

Implementation

_i2.dynamic get disabled => _i5.getProperty(
      this,
      'disabled',
    );
set disabled (dynamic value)

Implementation

set disabled(_i2.dynamic value) {
  _i5.setProperty(
    this,
    'disabled',
    value,
  );
}