LintCode class

A class representing an ErrorCode for LintRules.

Annotations
  • @immutable

Constructors

LintCode({required String name, required String problemMessage, String? correctionMessage, String? uniqueName, String? url, ErrorSeverity errorSeverity = ErrorSeverity.INFO})
A class representing an ErrorCode for LintRules.
const

Properties

correctionMessage String?
The template used to create the correction to be displayed for this error, or null if there is no correction information for this error. The correction should indicate how the user can fix the error.
no setterinherited
errorSeverity → ErrorSeverity
The severity of the error.
final
hashCode int
The hash code for this object.
no setteroverride
hasPublishedDocs bool
Return true if diagnostics with this code have documentation for them that has been published.
finalinherited
isIgnorable bool
Whether a finding of this error is ignorable via comments such as // ignore: or // ignore_for_file:.
no setterinherited
isUnresolvedIdentifier bool
Whether this error is caused by an unresolved identifier.
finalinherited
name String
The name of the error code.
finalinherited
numParameters int
no setterinherited
problemMessage String
The template used to create the problem message to be displayed for this error. The problem message should indicate what is wrong and why it is wrong.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type → ErrorType
The type of the error.
no setter
uniqueName String
The unique name of this error code.
finalinherited
url String?
Return a URL that can be used to access documentation for diagnostics with this code, or null if there is no published documentation.
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.
override