CodeStyleOptions class abstract

A set of options related to coding style that apply to the code within a single analysis context.

Clients may not extend, implement or mix-in this class.

Constructors

CodeStyleOptions()

Properties

addTrailingCommas bool
Whether the require_trailing_commas is enabled and trailing commas should be inserted in function calls and declarations.
no setter
finalInForEach bool
Whether local variables should be final inside a for-loop.
no setter
hashCode int
The hash code for this object.
no setterinherited
makeLocalsFinal bool
Whether local variables should be final whenever possible.
no setter
preferConstDeclarations bool
Whether prefer_const_declarations is enabled.
no setter
preferIntLiterals bool
Whether prefer_int_literals is enabled.
no setter
preferredQuoteForStrings String
The preferred quote based on the enabled lints, otherwise a single quote.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sortConstructorsFirst bool
Whether constructors should be sorted first, before other class members.
no setter
specifyTypes bool
Whether types should be specified whenever possible.
no setter
useFormatter bool
Whether the formatter should be used on code changes in this context.
no setter
usePackageUris bool
Whether URIs should be always added with a package scheme.
no setter
useRelativeUris bool
Whether URIs should be "relative", meaning without a scheme, whenever possible.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
preferredQuoteForUris(Iterable<NamespaceDirective> directives) String
The preferred quote character, based on the enabled lints, otherwise based on the most common quote, otherwise a single quote.
toString() String
A string representation of this object.
inherited

Operators

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