StyleFix class

Enum-like class for the different syntactic fixes that can be applied while formatting.

Properties

description String
final
hashCode int
The hash code for this object. [...]
read-only, inherited
name String
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited

Constants

all → const List<StyleFix>
const [docComments, functionTypedefs, namedDefaultSeparator, optionalConst, optionalNew, singleCascadeStatements]
docComments → const StyleFix
const StyleFix._('doc-comments', 'Use triple slash for documentation comments.')
functionTypedefs → const StyleFix
const StyleFix._('function-typedefs', 'Use new syntax for function type typedefs.')
namedDefaultSeparator → const StyleFix
const StyleFix._('named-default-separator', 'Use "=" as the separator before named parameter default values.')
optionalConst → const StyleFix
const StyleFix._('optional-const', 'Remove "const" keyword inside constant context.')
optionalNew → const StyleFix
const StyleFix._('optional-new', 'Remove "new" keyword.')
singleCascadeStatements → const StyleFix
const StyleFix._('single-cascade-statements', 'Remove unnecessary single cascades from expression statements.')