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
Properties
- addTrailingCommas → bool
-
Return
true
if therequire_trailing_commas
is enabled and trailing commas should be inserted in function calls and declarations.no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- makeLocalsFinal → bool
-
Return
true
if local variables should befinal
whenever possible.no setter - preferredQuoteForStrings → String
-
Return 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
-
Return
true
if constructors should be sorted first, before other class members.no setter - specifyTypes → bool
-
Return
true
if types should be specified whenever possible.no setter - useFormatter → bool
-
Return
true
if the formatter should be used on code changes in this context.no setter - useRelativeUris → bool
-
Return
true
if 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(
List< NamespaceDirective> directives) → String - Return the preferred quote 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