ErrorSeverity class

The severity of an message.

Implemented types

Constructors

ErrorSeverity(String name, int weight, String displayName)
Initialize a newly created severity with the given names.
const

Properties

displayName String
The name of the severity used when producing readable output.
final
hashCode int
The hash code for this object.
no setteroverride
name String
The name of this error code.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
weight int
The weight value of the error code.
final

Methods

compareTo(ErrorSeverity other) int
Compares this object to another object.
override
max(ErrorSeverity severity) ErrorSeverity
Return the severity constant that represents the greatest severity.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator <(ErrorSeverity other) bool
operator <=(ErrorSeverity other) bool
operator ==(Object other) bool
The equality operator.
override
operator >(ErrorSeverity other) bool
operator >=(ErrorSeverity other) bool

Constants

error → const ErrorSeverity
The severity representing an error.
info → const ErrorSeverity
The severity representing an informational level analysis issue.
none → const ErrorSeverity
The severity representing a non-error. This is never used for any error code, but is useful for clients.
values → const List<ErrorSeverity>
warning → const ErrorSeverity
The severity representing a warning. Warnings can become errors if the -Werror command line flag is specified.