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.new({ErrorSeverity? simple, ErrorSeverity? prefixedIdentifier, ErrorSeverity? interpolation, ErrorSeverity? binary, ErrorSeverity? adjacent, ErrorSeverity? method, ErrorSeverity? simpleIdentifier, ErrorSeverity? 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 LintOptions map.
factory

Properties

adjacent → ErrorSeverity?
Severity for adjacent string literals (e.g., 'a' 'b')
final
binary → ErrorSeverity?
Severity for binary expressions involving strings (e.g., 'a' + 'b')
final
function → ErrorSeverity?
Severity for function expression invocations returning strings (e.g., () => 'text')
final
hashCode int
The hash code for this object.
no setterinherited
interpolation → ErrorSeverity?
Severity for string interpolations (e.g., 'Hello $name')
final
method → ErrorSeverity?
Severity for method invocations returning strings (e.g., getText())
final
prefixedIdentifier → ErrorSeverity?
Severity for prefixed identifiers (e.g., ClassName.string)
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
simple → ErrorSeverity?
Severity for simple string literals (e.g., 'text')
final
simpleIdentifier → ErrorSeverity?
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