CodeActionContext constructor

CodeActionContext({
  1. CodeActionTriggerKind? triggerKind,
  2. List<Diagnostic>? diagnostics,
  3. CodeActionKind? only,
})

Implementation

factory CodeActionContext({
  _i3.CodeActionTriggerKind? triggerKind,
  _i2.List<_i3.Diagnostic>? diagnostics,
  _i3.CodeActionKind? only,
}) =>
    CodeActionContext._(
      triggerKind: triggerKind?.name,
      diagnostics: diagnostics ?? _i6.undefined,
      only: only ?? _i6.undefined,
    );