ConfigModel class
Configuration model used to define which types of string expressions are allowed or disallowed in lint rules, along with their respective severities.
Constructors
- ConfigModel({DiagnosticSeverity? simple, DiagnosticSeverity? prefixedIdentifier, DiagnosticSeverity? interpolation, DiagnosticSeverity? binary, DiagnosticSeverity? adjacent, DiagnosticSeverity? method, DiagnosticSeverity? simpleIdentifier, DiagnosticSeverity? function})
- Creates a ConfigModel with individual severity settings for each expression type.
-
ConfigModel.fromMap(Map<
String, dynamic> map) -
Factory constructor to create a ConfigModel from a raw Map.
factory
-
ConfigModel.fromRules(Map<
String, LintOptions> rules) -
Factory constructor to create a ConfigModel from a
LintOptionsmap.factory
Properties
- adjacent → DiagnosticSeverity?
-
Severity for adjacent string literals (e.g.,
'a' 'b')final - binary → DiagnosticSeverity?
-
Severity for binary expressions involving strings (e.g.,
'a' + 'b')final - function → DiagnosticSeverity?
-
Severity for function expression invocations returning strings (e.g.,
() => 'text')final - hashCode → int
-
The hash code for this object.
no setterinherited
- interpolation → DiagnosticSeverity?
-
Severity for string interpolations (e.g.,
'Hello $name')final - method → DiagnosticSeverity?
-
Severity for method invocations returning strings (e.g.,
getText())final - prefixedIdentifier → DiagnosticSeverity?
-
Severity for prefixed identifiers (e.g.,
ClassName.string)final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- simple → DiagnosticSeverity?
-
Severity for simple string literals (e.g.,
'text')final - simpleIdentifier → DiagnosticSeverity?
-
Severity for simple identifiers referring to strings (e.g.,
label)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