PreferDotShorthandConfig class
Configuration for the prefer_dot_shorthand rule.
Each flag enables reporting one kind of member. All of them are enabled by default.
- unnamedConstructors:
Key(1), which can be written as.new(1) - namedConstructors:
Key.named(1), which can be written as.named(1) - staticMembers: static methods, getters and fields, such as
int.parse(s)anddouble.infinity - enumValues:
Alignment.center, which can be written as.center
Constructors
- PreferDotShorthandConfig({bool unnamedConstructors = true, bool namedConstructors = true, bool staticMembers = true, bool enumValues = true})
-
const
Properties
- enumValues → bool
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- namedConstructors → bool
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- staticMembers → bool
-
final
- unnamedConstructors → bool
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited