Refactorings and Code Fixes
Ctrl
+.
in Code opens the “lightbulb” menu showing all code fixes/refactors. Code v1.20 gained the ability to keybind quickfixes. To do this you should edit your keybindings.json
file and include the ID of the refactor as found below. If the kind
for the keybind is set to just a segment of the ID (for example ‘refactor.surround’) then all actions sharing that prefix will appear in a filtered menu (or if only one, the action invoked immediately). You can control this behavior with the apply
argument see docs.
The list of refactors comes from the Dart analysis server and therefore may change over time. Once this list is available somewhere centrally the readme will be updated to link there.
Note: These IDs are only provided by recent versions of the Dart analysis server and may not work with older builds.
quickfix.add.async
- Add ‘async’ modifierquickfix.add.await
- Add ‘await’ keywordquickfix.add.await.multi
- Add ‘await’s everywhere in filequickfix.add.callSuper
- Add ‘super….’quickfix.add.class.modifier.base
- Add ‘base’ modifierquickfix.add.class.modifier.base.multi
- Add ‘base’ modifier everywhere in filequickfix.add.class.modifier.final
- Add ‘final’ modifierquickfix.add.class.modifier.final.multi
- Add ‘final’ modifier everywhere in filequickfix.add.class.modifier.sealed
- Add ‘sealed’ modifierquickfix.add.class.modifier.sealed.multi
- Add ‘sealed’ modifier everywhere in filequickfix.add.const
- Add ‘const’ modifierquickfix.add.const.multi
- Add ‘const’ modifiers everywhere in filequickfix.add.curlyBraces
- Add curly bracesquickfix.add.curlyBraces.multi
- Add curly braces everywhere in filequickfix.add.diagnosticPropertyReference
- Add a debug reference to this propertyquickfix.add.diagnosticPropertyReference.multi
- Add missing debug property references everywhere in filequickfix.add.empty.argument.list
- Add empty argument listquickfix.add.empty.argument.list.multi
- Add empty argument lists everywhere in filequickfix.add.enumConstant
- Add enum constant ‘…’quickfix.add.eolAtEndOfFile
- Add EOL at end of filequickfix.add.explicitCall
- Add explicit .call tearoffquickfix.add.explicitCall.multi
- Add explicit .call to implicit tearoffs in filequickfix.add.explicitCast
- Add castquickfix.add.explicitCast.multi
- Add cast everywhere in filequickfix.add.extensionOverride
- Add an extension override for ‘…’quickfix.add.fieldFormalParameters
- Add final field formal parametersquickfix.add.keyToConstructors
- Add ‘key’ to constructorsquickfix.add.keyToConstructors.multi
- Add ‘key’ to constructors everywhere in filequickfix.add.late
- Add ‘late’ modifierquickfix.add.leadingNewlineToString
- Add leading new linequickfix.add.leadingNewlineToString.multi
- Add leading new line everywhere in filequickfix.add.missingEnumCaseClauses
- Add missing case clausesquickfix.add.missingParameterNamed
- Add named parameter ‘…’quickfix.add.missingParameterPositional
- Add optional positional parameterquickfix.add.missingParameterRequired
- Add required positional parameterquickfix.add.missingRequiredArgument
- Add required argument ‘…’quickfix.add.missingSwitchCases
- Add missing switch casesquickfix.add.neNull
- Add != nullquickfix.add.neNull.multi
- Add != null everywhere in filequickfix.add.override
- Add ‘@override’ annotationquickfix.add.override.multi
- Add ‘@override’ annotations everywhere in filequickfix.add.redeclare
- Add ‘@redeclare’ annotationquickfix.add.redeclare.multi
- Add ‘@redeclare’ annotations everywhere in filequickfix.add.reopen
- Add ‘@reopen’ annotationquickfix.add.reopen.multi
- Add ‘@reopen’ annotations everywhere in filequickfix.add.required
- Add ‘required’ keywordquickfix.add.returnNull
- Add ‘return null’quickfix.add.returnNull.multi
- Add ‘return null’ everywhere in filequickfix.add.returnType
- Add return typequickfix.add.returnType.multi
- Add return types everywhere in filequickfix.add.static
- Add ‘static’ modifierquickfix.add.superConstructorInvocation
- Add super constructor … invocationquickfix.add.superParameter
- Add required parameter…quickfix.add.switchCaseReturn
- Add ‘break’quickfix.add.switchCaseReturn.multi
- Add ‘break’ everywhere in filequickfix.add.trailingComma
- Add trailing commaquickfix.add.trailingComma.multi
- Add trailing commas everywhere in filequickfix.add.typeAnnotation
- Add type annotationquickfix.add.typeAnnotation.multi
- Add type annotations everywhere in filequickfix.change.argumentName
- Change to ‘…’quickfix.change.toNearestPreciseValue
- Change to nearest precise int-as-double value: …quickfix.change.toStaticAccess
- Change access to static using ‘…’quickfix.change.typeAnnotation
- Change ‘…’ to ‘…’ type annotationquickfix.convert.bodyToBlock
- Convert to block bodyquickfix.convert.bodyToBlock.multi
- Convert to block body everywhere in filequickfix.convert.classToEnum
- Convert class to an enumquickfix.convert.classToEnum.multi
- Convert classes to enums in filequickfix.convert.isNot
- Convert to is!quickfix.convert.isNot.multi
- Convert to is! everywhere in filequickfix.convert.quotes
- Convert the quotes and remove escapesquickfix.convert.quotes.multi
- Convert the quotes and remove escapes everywhere in filequickfix.convert.toBoolExpression
- Convert to boolean expressionquickfix.convert.toBoolExpression.multi
- Convert to boolean expressions everywhere in filequickfix.convert.toCascade
- Convert to cascade notationquickfix.convert.toConstantPattern
- Convert to constant patternquickfix.convert.toContains
- Convert to using ‘contains’quickfix.convert.toContains.multi
- Convert to using ‘contains’ everywhere in filequickfix.convert.toDoubleQuotedString
- Convert to double quoted stringquickfix.convert.toDoubleQuotedString.multi
- Convert to double quoted strings everywhere in filequickfix.convert.toExpressionBody
- Convert to expression bodyquickfix.convert.toExpressionBody.multi
- Convert to expression bodies everywhere in filequickfix.convert.toFlutterStyleTodo
- Convert to flutter style todoquickfix.convert.toFlutterStyleTodo.multi
- Convert to flutter style todos everywhere in filequickfix.convert.toForElement
- Convert to a ‘for’ elementquickfix.convert.toForElement.multi
- Convert to ‘for’ elements everywhere in filequickfix.convert.toForLoop
- Convert ‘forEach’ to a ‘for’ loopquickfix.convert.toForLoop.multi
- Convert ‘forEach’ to a ‘for’ loop everywhere in filequickfix.convert.toFunctionDeclaration
- Convert to function declarationquickfix.convert.toFunctionDeclaration.multi
- Convert to function declaration everywhere in filequickfix.convert.toGenericFunctionSyntax
- Convert into ‘Function’ syntaxquickfix.convert.toGenericFunctionSyntax.multi
- Convert to ‘Function’ syntax everywhere in filequickfix.convert.toIfElement
- Convert to an ‘if’ elementquickfix.convert.toIfElement.multi
- Convert to ‘if’ elements everywhere in filequickfix.convert.toIfNull
- Convert to use ‘??’quickfix.convert.toIfNull.multi
- Convert to ‘??’s everywhere in filequickfix.convert.toInitializingFormal
- Convert to an initializing formal parameterquickfix.convert.toIntLiteral
- Convert to an int literalquickfix.convert.toIntLiteral.multi
- Convert to int literals everywhere in filequickfix.convert.toLineComment
- Convert to line documentation commentquickfix.convert.toLineComment.multi
- Convert to line documentation comments everywhere in filequickfix.convert.toMapLiteral
- Convert to map literalquickfix.convert.toMapLiteral.multi
- Convert to map literals everywhere in filequickfix.convert.toNamedArguments
- Convert to named argumentsquickfix.convert.toNullAware
- Convert to use ‘?.’quickfix.convert.toNullAware.multi
- Convert to use ‘?.’ everywhere in filequickfix.convert.toNullAwareSpread
- Convert to use ‘…?’quickfix.convert.toNullAwareSpread.multi
- Convert to use ‘…?’ everywhere in filequickfix.convert.toOnType
- Convert to ‘on …’quickfix.convert.toPackageImport
- Convert to ‘package:’ importquickfix.convert.toPackageImport.multi
- Convert to ‘package:’ imports everywhere in filequickfix.convert.toRawString
- Convert to raw stringquickfix.convert.toRawString.multi
- Convert to raw strings everywhere in filequickfix.convert.toRelativeImport
- Convert to relative importquickfix.convert.toRelativeImport.multi
- Convert to relative imports everywhere in filequickfix.convert.toSetLiteral
- Convert to set literalquickfix.convert.toSetLiteral.multi
- Convert to set literals everywhere in filequickfix.convert.toSingleQuotedString
- Convert to single quoted stringquickfix.convert.toSingleQuotedString.multi
- Convert to single quoted strings everywhere in filequickfix.convert.toSpread
- Convert to a spreadquickfix.convert.toSpread.multi
- Convert to spreads everywhere in filequickfix.convert.toSuperParameters
- Convert to using super parametersquickfix.convert.toSuperParameters.multi
- Convert to using super parameters everywhere in filequickfix.convert.toWhereType
- Convert to use ‘whereType’quickfix.convert.toWhereType.multi
- Convert to using ‘whereType’ everywhere in filequickfix.convert.toWildcardPattern
- Convert to wildcard patternquickfix.convert.toWildcardVariable
- Convert to wildcard variablequickfix.create.class
- Create class ‘…’quickfix.create.constructor
- Create constructor ‘…’quickfix.create.constructorForFinalFields
- Create constructor for final fieldsquickfix.create.constructorSuper
- Create constructor to call …quickfix.create.field
- Create field ‘…’quickfix.create.file
- Create file ‘…’quickfix.create.function
- Create function ‘…’quickfix.create.getter
- Create getter ‘…’quickfix.create.localVariable
- Create local variable ‘…’quickfix.create.method
- Create method ‘…’quickfix.create.method.multi
- Create methods in filequickfix.create.mixin
- Create mixin ‘…’quickfix.create.noSuchMethod
- Create ‘noSuchMethod’ methodquickfix.create.parameter
- Create required positional parameter ‘…’quickfix.create.setter
- Create setter ‘…’quickfix.dataDriven
- …quickfix.extendClassForMixin
- Extend the class ‘…’quickfix.extractLocalVariable
- Extract local variablequickfix.flutter.convert.childToChildren
- Convert to children:quickfix.flutter.convert.childrenToChild
- Convert to child:quickfix.flutter.makeConditionalOnDebugMode
- Make conditional on ‘kDebugMode’quickfix.flutter.wrap.text
- Wrap in a ‘Text’ widgetquickfix.ignore.line
- Ignore ‘…’ for this linequickfix.import.async
- Import ‘dart:async’quickfix.import.libraryPrefix
- Use imported library ‘…’ with prefix ‘…’quickfix.insertBody
- Insert bodyquickfix.insertSemicolon
- Insert ‘;’quickfix.insertSemicolon.multi
- Insert ‘;’ everywhere in filequickfix.makeClassAbstract
- Make class ‘…’ abstractquickfix.makeFieldNotFinal
- Make field ‘…’ not finalquickfix.makeFieldPublic
- Make field ‘…’ publicquickfix.makeFinal
- Make finalquickfix.makeFinal.multi
- Make final where possible in filequickfix.makeRequiredNamedParametersFirst
- Put required named parameter firstquickfix.makeRequiredNamedParametersFirst.multi
- Put required named parameters first everywhere in filequickfix.makeReturnTypeNullable
- Make the return type nullablequickfix.makeSuperInvocationLast
- Move the invocation to the end of the initializer listquickfix.makeVariableNotFinal
- Make variable ‘…’ not finalquickfix.makeVariableNullable
- Make ‘…’ nullablequickfix.matchAnyMap
- Match any mapquickfix.matchEmptyMap
- Match an empty mapquickfix.moveAnnotationToLibraryDirective
- Move this annotation to a library directivequickfix.moveDocCommentToLibraryDirective
- Move this doc comment to a library directivequickfix.moveTypeArgumentsToClass
- Move type arguments to after class namequickfix.organize.imports
- Organize Importsquickfix.qualifyReference
- Use ‘…’quickfix.remove.abstract
- Remove the ‘abstract’ keywordquickfix.remove.abstract.multi
- Remove the ‘abstract’ keyword everywhere in filequickfix.remove.annotation
- Remove the ‘…’ annotationquickfix.remove.argument
- Remove argumentquickfix.remove.argument.multi
- Remove arguments in filequickfix.remove.assertion
- Remove the assertionquickfix.remove.assignment
- Remove assignmentquickfix.remove.assignment.multi
- Remove unnecessary assignments everywhere in filequickfix.remove.await
- Remove awaitquickfix.remove.await.multi
- Remove awaits in filequickfix.remove.break
- Remove breakquickfix.remove.break.multi
- Remove unnecessary breaks in filequickfix.remove.character
- Remove the ‘U+…’ code pointquickfix.remove.comma
- Remove the commaquickfix.remove.comma.multi
- Remove …commas from … everywhere in filequickfix.remove.comparison
- Remove comparisonquickfix.remove.comparison.multi
- Remove comparisons in filequickfix.remove.comparison.multi
- Remove type check everywhere in filequickfix.remove.const
- Remove constquickfix.remove.constructor
- Remove the constructorquickfix.remove.constructorName
- Remove ‘new’quickfix.remove.constructorName.multi
- Remove constructor names in filequickfix.remove.deadCode
- Remove dead codequickfix.remove.defaultValue
- Remove the default valuequickfix.remove.deprecatedNewInCommentReference
- Remove deprecated new keywordquickfix.remove.deprecatedNewInCommentReference.multi
- Remove deprecated new keyword in filequickfix.remove.duplicateCase
- Remove duplicate case statementquickfix.remove.duplicateCase.multi
- Remove duplicate case statementquickfix.remove.emptyCatch
- Remove empty catch clausequickfix.remove.emptyCatch.multi
- Remove empty catch clauses everywhere in filequickfix.remove.emptyConstructorBody
- Remove empty constructor bodyquickfix.remove.emptyConstructorBody.multi
- Remove empty constructor bodies in filequickfix.remove.emptyElse
- Remove empty else clausequickfix.remove.emptyElse.multi
- Remove empty else clauses everywhere in filequickfix.remove.emptyStatement
- Remove empty statementquickfix.remove.emptyStatement.multi
- Remove empty statements everywhere in filequickfix.remove.extends.clause
- Remove the invalid ‘extends’ clausequickfix.remove.extends.clause.multi
- Remove invalid ‘extends’ clauses everywhere in filequickfix.remove.ifNullOperator
- Remove the ‘??’ operatorquickfix.remove.ifNullOperator.multi
- Remove unnecessary ‘??’ operators everywhere in filequickfix.remove.initializer
- Remove initializerquickfix.remove.initializer.multi
- Remove unnecessary initializers everywhere in filequickfix.remove.interpolationBraces
- Remove unnecessary interpolation bracesquickfix.remove.interpolationBraces.multi
- Remove unnecessary interpolation braces everywhere in filequickfix.remove.invocation
- Remove unnecessary invocation of …quickfix.remove.invocation.multi
- Remove unnecessary invocations of … in filequickfix.remove.late
- Remove the ‘late’ keywordquickfix.remove.late.multi
- Remove the ‘late’ keyword everywhere in filequickfix.remove.leadingUnderscore
- Remove leading underscorequickfix.remove.leadingUnderscore.multi
- Remove leading underscores in filequickfix.remove.lexeme
- Remove the … …quickfix.remove.lexeme.multi
- Remove …s everywhere in filequickfix.remove.library.name
- Remove the library namequickfix.remove.methodDeclaration
- Remove method declarationquickfix.remove.methodDeclaration.multi
- Remove unnecessary method declarations in filequickfix.remove.nameFromCombinator
- Remove name from ‘…’quickfix.remove.nameFromDeclarationClause
- …quickfix.remove.new
- Remove ‘new’ keywordquickfix.remove.nonNullAssertion
- Remove the ‘!’quickfix.remove.nonNullAssertion.multi
- Remove ‘!’s in filequickfix.remove.on.clause
- Remove the invalid ‘on’ clausequickfix.remove.on.clause.multi
- Remove all invalid ‘on’ clauses in filequickfix.remove.operator
- Remove the operatorquickfix.remove.operator.multi.multi
- Remove operators in filequickfix.remove.parametersInGetterDeclaration
- Remove parameters in getter declarationquickfix.remove.parenthesisInGetterInvocation
- Remove parentheses in getter invocationquickfix.remove.questionMark
- Remove the ‘?’quickfix.remove.questionMark.multi
- Remove unnecessary question marks in filequickfix.remove.removePrint
- Remove print statementquickfix.remove.removePrint.multi
- Remove print statements in filequickfix.remove.required
- Remove ‘required’quickfix.remove.returnedValue
- Remove invalid returned valuequickfix.remove.returnedValue.multi
- Remove invalid returned values in filequickfix.remove.thisExpression
- Remove ‘this’ expressionquickfix.remove.thisExpression.multi
- Remove unnecessary ‘this’ expressions everywhere in filequickfix.remove.typeAnnotation
- Remove type annotationquickfix.remove.typeAnnotation.multi
- Remove unnecessary type annotations in filequickfix.remove.typeArguments
- Remove type argumentsquickfix.remove.typeCheck
- Remove type checkquickfix.remove.unexpectedUnderscores
- Remove unexpected ‘_’ charactersquickfix.remove.unexpectedUnderscores.multi
- Remove unexpected ‘_’ characters in filequickfix.remove.unnecessaryCast
- Remove unnecessary castquickfix.remove.unnecessaryCast.multi
- Remove all unnecessary casts in filequickfix.remove.unnecessaryConst
- Remove unnecessary const keywordquickfix.remove.unnecessaryConst.multi
- Remove unnecessary ‘const’ keywords everywhere in filequickfix.remove.unnecessaryContainer
- Remove unnecessary ‘Container’quickfix.remove.unnecessaryContainer.multi
- Remove unnecessary ‘Container’s in filequickfix.remove.unnecessaryFinal
- Remove unnecessary ‘final’quickfix.remove.unnecessaryFinal.multi
- Remove all unnecessary ‘final’s in filequickfix.remove.unnecessaryLate
- Remove unnecessary ‘late’ keywordquickfix.remove.unnecessaryLate.multi
- Remove unnecessary ‘late’ keywords everywhere in filequickfix.remove.unnecessaryLibraryDirective
- Remove unnecessary library directivequickfix.remove.unnecessaryNew
- Remove unnecessary ‘new’ keywordquickfix.remove.unnecessaryNew.multi
- Remove unnecessary ‘new’ keywords everywhere in filequickfix.remove.unnecessaryParentheses
- Remove unnecessary parenthesesquickfix.remove.unnecessaryParentheses.multi
- Remove all unnecessary parentheses in filequickfix.remove.unnecessaryRawString
- Remove unnecessary ‘r’ in stringquickfix.remove.unnecessaryRawString.multi
- Remove unnecessary ‘r’ in strings in filequickfix.remove.unnecessaryStringEscape
- Remove unnecessary ‘\’ in stringquickfix.remove.unnecessaryStringEscape.multi
- Remove unnecessary ‘\’ in strings in filequickfix.remove.unnecessaryStringInterpolation
- Remove unnecessary string interpolationquickfix.remove.unnecessaryStringInterpolation.multi
- Remove all unnecessary string interpolations in filequickfix.remove.unnecessaryToList
- Remove unnecessary ‘toList’ callquickfix.remove.unnecessaryToList.multi
- Remove unnecessary ‘toList’ calls in filequickfix.remove.unnecessaryWildcardPattern
- Remove unnecessary wildcard patternquickfix.remove.unnecessaryWildcardPattern.multi
- Remove all unnecessary wildcard pattern in filequickfix.remove.unusedCatchClause
- Remove unused ‘catch’ clausequickfix.remove.unusedCatchClause.multi
- Remove unused ‘catch’ clauses in filequickfix.remove.unusedCatchStack
- Remove unused stack trace variablequickfix.remove.unusedCatchStack.multi
- Remove unused stack trace variables in filequickfix.remove.unusedElement
- Remove unused elementquickfix.remove.unusedField
- Remove unused fieldquickfix.remove.unusedImport
- Remove unused importquickfix.remove.unusedImport.multi
- Remove all unused imports in filequickfix.remove.unusedLabel
- Remove unused labelquickfix.remove.unusedLocalVariable
- Remove unused local variablequickfix.remove.unusedParameter
- Remove the unused parameterquickfix.remove.unusedParameter.multi
- Remove unused parameters everywhere in filequickfix.remove.var
- Remove ‘var’quickfix.remove.var.keyword
- Remove ‘var’quickfix.removeLint
- Remove ‘…’quickfix.removeSetting
- Remove ‘…’quickfix.rename.methodParameter
- Rename ‘…’ to ‘…’quickfix.rename.toCamelCase
- Rename to ‘…’quickfix.rename.toCamelCase.multi
- Rename to camel case everywhere in filequickfix.replace.booleanWithBool
- Replace ‘boolean’ with ‘bool’quickfix.replace.booleanWithBool.multi
- Replace all ‘boolean’s with ‘bool’ in filequickfix.replace.cascadeWithDot
- Replace ‘..’ with ‘.’quickfix.replace.cascadeWithDot.multi
- Replace unnecessary ‘..’s with ‘.’s everywhere in filequickfix.replace.colonWithEquals
- Replace ‘:’ with ‘=’quickfix.replace.colonWithEquals.multi
- Replace ‘:’s with ‘=’s everywhere in filequickfix.replace.colonWithIn
- Replace ‘:’ with ‘in’quickfix.replace.colonWithIn.multi
- Replace ‘:’s with ‘in’s everywhere in filequickfix.replace.containerWithSizedBox
- Replace with ‘SizedBox’quickfix.replace.containerWithSizedBox.multi
- Replace with ‘SizedBox’ everywhere in filequickfix.replace.finalWithConst
- Replace ‘final’ with ‘const’quickfix.replace.finalWithConst.multi
- Replace ‘final’ with ‘const’ where possible in filequickfix.replace.finalWithVar
- Replace ‘final’ with ‘var’quickfix.replace.finalWithVar.multi
- Replace ‘final’ with ‘var’ where possible in filequickfix.replace.newWithConst
- Replace ‘new’ with ‘const’quickfix.replace.newWithConst.multi
- Replace ‘new’ with ‘const’ where possible in filequickfix.replace.nullCheckWithCast
- Replace null check with a castquickfix.replace.nullCheckWithCast.multi
- Replace null checks with casts in filequickfix.replace.nullWithClosure
- Replace ‘null’ with a closurequickfix.replace.nullWithClosure.multi
- Replace ‘null’s with closures where possible in filequickfix.replace.nullWithVoid
- Replace ‘Null’ with ‘void’quickfix.replace.nullWithVoid.multi
- Replace ‘Null’ with ‘void’ everywhere in filequickfix.replace.returnType
- Replace the return type with ‘…’quickfix.replace.returnTypeFuture
- Return ‘Future<…>’quickfix.replace.returnTypeFuture.multi
- Return a ‘Future’ where required in filequickfix.replace.returnTypeIterable
- Return ‘Iterable<…>’quickfix.replace.returnTypeStream
- Return ‘Stream<…>’quickfix.replace.varWithDynamic
- Replace ‘var’ with ‘dynamic’quickfix.replace.withArrow
- Replace with ‘=>’quickfix.replace.withArrow.multi
- Replace with ‘=>’ everywhere in filequickfix.replace.withBrackets
- Replace with { }quickfix.replace.withBrackets.multi
- Replace with { } everywhere in filequickfix.replace.withConditionalAssignment
- Replace with ??=quickfix.replace.withConditionalAssignment.multi
- Replace with ??= everywhere in filequickfix.replace.withDecoratedBox
- Replace with ‘DecoratedBox’quickfix.replace.withDecoratedBox.multi
- Replace with ‘DecoratedBox’ everywhere in filequickfix.replace.withEightDigitHex
- Replace with ‘…’quickfix.replace.withEightDigitHex.multi
- Replace with hex digits everywhere in filequickfix.replace.withExtensionName
- Replace with ‘…’quickfix.replace.withIdentifier
- Replace with identifierquickfix.replace.withIdentifier.multi
- Replace with identifier everywhere in filequickfix.replace.withInterpolation
- Replace with interpolationquickfix.replace.withInterpolation.multi
- Replace with interpolations everywhere in filequickfix.replace.withIsEmpty
- Replace with ‘isEmpty’quickfix.replace.withIsEmpty.multi
- Replace with ‘isEmpty’ everywhere in filequickfix.replace.withIsNaN
- Replace the condition with ‘.isNaN’quickfix.replace.withIsNotEmpty
- Replace with ‘isNotEmpty’quickfix.replace.withIsNotEmpty.multi
- Replace with ‘isNotEmpty’ everywhere in filequickfix.replace.withNotNullAware
- Replace with ‘…’quickfix.replace.withNotNullAware.multi
- Replace with non-null-aware operator everywhere in filequickfix.replace.withNullAware
- Replace the ‘…’ with a ‘…’ in the invocationquickfix.replace.withPartOfUri
- Replace with ‘part of …’quickfix.replace.withTearOff
- Replace function literal with tear-offquickfix.replace.withTearOff.multi
- Replace function literals with tear-offs everywhere in filequickfix.replace.withUnicodeEscape
- Replace with Unicode escapequickfix.replace.withVar
- Replace type annotation with ‘var’quickfix.replace.withVar.multi
- Replace type annotations with ‘var’ everywhere in filequickfix.replace.withWildcard
- Replace with ‘_’quickfix.replace.withWildcard.multi
- Replace with ‘_’ everywhere in filequickfix.replaceWithStrictCasts
- Replace with the strict-casts analysis modequickfix.replaceWithStrictRawTypes
- Replace with the strict-raw-types analysis modequickfix.sort.childPropertyLast
- Move child property to end of argumentsquickfix.sort.childPropertyLast.multi
- Move child properties to ends of arguments everywhere in filequickfix.sort.combinators
- Sort combinatorsquickfix.sort.combinators.multi
- Sort combinators everywhere in filequickfix.sort.sortConstructorFirst
- Move before other membersquickfix.sort.sortConstructorFirst.multi
- Move all constructors before other membersquickfix.sort.sortUnnamedConstructorFirst
- Move before named constructorsquickfix.sort.sortUnnamedConstructorFirst.multi
- Move all unnamed constructors before named constructorsquickfix.split.multipleDeclarations
- Split multiple declarations into multiple linesquickfix.split.multipleDeclarations.multi
- Split all multiple declarations into multiple linesquickfix.surround.parentheses
- Surround with parenthesesquickfix.updateSdkConstraints
- Update the SDK constraintsquickfix.use.eqEqNull
- Use == null instead of ‘is Null’quickfix.use.eqEqNull.multi
- Use == null instead of ‘is Null’ everywhere in filequickfix.use.isNotEmpty
- Use x.isNotEmpty instead of ‘!x.isEmpty’quickfix.use.isNotEmpty.multi
- Use x.isNotEmpty instead of ‘!x.isEmpty’ everywhere in filequickfix.use.namedConstants
- Replace with a predefined named constantquickfix.use.notEqNull
- Use != null instead of ‘is! Null’quickfix.use.notEqNull.multi
- Use != null instead of ‘is! Null’ everywhere in filequickfix.use.rethrow
- Replace throw with rethrowquickfix.use.rethrow.multi
- Replace throw with rethrow where possible in filequickfix.wrap.unawaited
- Wrap in ‘unawaited’refactor.add.diagnosticPropertyReference
- Add a debug reference to this propertyrefactor.add.digitSeparators
- Add digit separatorsrefactor.add.returnType
- Add return typerefactor.add.showCombinator
- Add explicit ‘show’ combinatorrefactor.add.typeAnnotation
- Add type annotationrefactor.assignToVariable
- Assign value to new local variablerefactor.convert.blockComment
- Convert to block documentation commentrefactor.convert.bodyToAsync
- Convert to async function bodyrefactor.convert.bodyToBlock
- Convert to block bodyrefactor.convert.bodyToExpression
- Convert to expression bodyrefactor.convert.classToEnum
- Convert class to an enumrefactor.convert.classToMixin
- Convert class to a mixinrefactor.convert.conditionalToIfElse
- Replace conditional with ‘if-else’refactor.convert.finalFieldToGetter
- Convert to getterrefactor.convert.forEachToForIndex
- Convert to for-index looprefactor.convert.getterToFinalField
- Convert to final fieldrefactor.convert.ifCaseStatement
- Convert to ‘if-case’ statementrefactor.convert.ifCaseStatementChain
- Convert to ‘if-case’ statement chainrefactor.convert.ifElseToConditional
- Replace ‘if-elserefactor.convert.isNot
- Convert to is!refactor.convert.isNotEmpty
- Convert to ‘isNotEmpty’refactor.convert.lineComment
- Convert to line documentation commentrefactor.convert.packageToRelativeImport
- Convert to a relative importrefactor.convert.partOfToPartUri
- Convert to use a URIrefactor.convert.relativeToPackageImport
- Convert to ‘package:’ importrefactor.convert.switchExpression
- Convert to switch expressionrefactor.convert.switchStatement
- Convert to switch statementrefactor.convert.toConstructorFieldParameter
- Convert to field formal parameterrefactor.convert.toConstructorNormalParameter
- Convert to normal parameterrefactor.convert.toDoubleQuotedString
- Convert to double quoted stringrefactor.convert.toForElement
- Convert to a ‘for’ elementrefactor.convert.toGenericFunctionSyntax
- Convert into ‘Function’ syntaxrefactor.convert.toIfElement
- Convert to an ‘if’ elementrefactor.convert.toIntLiteral
- Convert to an int literalrefactor.convert.toMapLiteral
- Convert to map literalrefactor.convert.toMultilineString
- Convert to multiline stringrefactor.convert.toNullAware
- Convert to use ‘?.’refactor.convert.toSetLiteral
- Convert to set literalrefactor.convert.toSingleQuotedString
- Convert to single quoted stringrefactor.convert.toSpread
- Convert to a spreadrefactor.convert.toSuperParameters
- Convert to using super parametersrefactor.destructureLocalVariableAssignment
- Destructure variable assignmentrefactor.encapsulateField
- Encapsulate fieldrefactor.exchangeOperands
- Exchange operandsrefactor.flutter.convert.childToChildren
- Convert to children:refactor.flutter.convert.toStatefulWidget
- Convert to StatefulWidgetrefactor.flutter.convert.toStatelessWidget
- Convert to StatelessWidgetrefactor.flutter.move.down
- Move widget downrefactor.flutter.move.up
- Move widget uprefactor.flutter.removeWidget
- Remove this widgetrefactor.flutter.swap.withChild
- Swap with childrefactor.flutter.swap.withParent
- Swap with parentrefactor.flutter.wrap.builder
- Wrap with Builderrefactor.flutter.wrap.center
- Wrap with Centerrefactor.flutter.wrap.column
- Wrap with Columnrefactor.flutter.wrap.container
- Wrap with Containerrefactor.flutter.wrap.generic
- Wrap with widget…refactor.flutter.wrap.padding
- Wrap with Paddingrefactor.flutter.wrap.row
- Wrap with Rowrefactor.flutter.wrap.sizedBox
- Wrap with SizedBoxrefactor.flutter.wrap.streamBuilder
- Wrap with StreamBuilderrefactor.inline
- Inline invocation of ‘…’refactor.invertIf
- Invert ‘if’ statementrefactor.joinVariableDeclaration
- Join variable declarationrefactor.joinWithInnerIf
- Join ‘if’ statement with inner ‘if’ statementrefactor.joinWithOuterIf
- Join ‘if’ statement with outer ‘if’ statementrefactor.remove.digitSeparators
- Remove digit separatorsrefactor.replace.withVar
- Replace type annotation with ‘var’refactor.shadowField
- Create a local variable that shadows the fieldrefactor.sort.child.properties.last
- Move child property to end of argumentsrefactor.splitIfConjunction
- Split && conditionrefactor.splitVariableDeclaration
- Split variable declarationrefactor.surround.block
- Surround with blockrefactor.surround.curlyBraces
- Use curly bracesrefactor.surround.doWhile
- Surround with ‘do-while’refactor.surround.forEach
- Surround with ‘for’refactor.surround.forIn
- Surround with ‘for-in’refactor.surround.if
- Surround with ‘if’refactor.surround.setState
- Surround with ‘setState’refactor.surround.tryCatch
- Surround with ‘try-catch’refactor.surround.tryFinally
- Surround with ‘try-finally’refactor.surround.while
- Surround with ‘while’refactor.unwrap.if
- Unwrap ‘if’ body