StaticWarningCode class

The error codes used for static warnings. The convention for this class is for the name of the error code to indicate the problem that caused the error to be generated and for the error message to explain what is wrong and, when appropriate, how the problem can be corrected.

Inheritance

Constructors

StaticWarningCode(String name, { String message, { String correction, ErrorSeverity errorSeverity: ErrorSeverity.ERROR, bool hasPublishedDocs bool isUnresolvedIdentifier: false })
Initialize a newly created error code to have the given name. The message associated with the error will be created from the given message template. The correction associated with the error will be created from the given correction template.
const

Properties

errorSeverity ErrorSeverity
The severity of the error.
final
type ErrorType
The type of the error.
read-only, override
correction → 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.
final, inherited
hashCode → int
The hash code for this object.
read-only, inherited
hasPublishedDocs → bool
Return true if diagnostics with this code have documentation for them that has been published.
final, inherited
isUnresolvedIdentifier → bool
Whether this error is caused by an unresolved identifier.
final, inherited
message → String
The template used to create the message to be displayed for this error. The message should indicate what is wrong and why it is wrong.
final, inherited
name → String
The name of the error code.
final, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited
uniqueName → String
The unique name of this error code.
read-only, inherited
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.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited

Constants

AMBIGUOUS_IMPORT → const StaticWarningCode
14.1 Imports: If a name N is referenced by a library L and N is introduced into the top level scope L by more than one import then: [...]
const StaticWarningCode('AMBIGUOUS_IMPORT', 'The name '{0}' is defined in the libraries {1}.', correction: 'Try using 'as prefix' for one of the import directives, …
ARGUMENT_TYPE_NOT_ASSIGNABLE → const StaticWarningCode
Parameters: 0: the name of the actual argument type 1: the name of the expected type
const StaticWarningCode('ARGUMENT_TYPE_NOT_ASSIGNABLE', 'The argument type '{0}' can't be assigned to the parameter type ' ''{1}'.', hasPublishedDocs: true)
ASSIGNMENT_TO_CONST → const StaticWarningCode
5 Variables: Attempting to assign to a final variable elsewhere will cause a NoSuchMethodError to be thrown, because no setter is defined for it. The assignment will also give rise to a static warning for the same reason. [...]
const StaticWarningCode('ASSIGNMENT_TO_CONST', 'Constant variables can't be assigned a value.', correction: 'Try removing the assignment, or ' 'remove the modifier '…
ASSIGNMENT_TO_FINAL → const StaticWarningCode
5 Variables: Attempting to assign to a final variable elsewhere will cause a NoSuchMethodError to be thrown, because no setter is defined for it. The assignment will also give rise to a static warning for the same reason.
const StaticWarningCode('ASSIGNMENT_TO_FINAL', ''{0}' can't be used as a setter because it is final.', correction: 'Try finding a different setter, or making '{0}&#…
ASSIGNMENT_TO_FINAL_LOCAL → const StaticWarningCode
5 Variables: Attempting to assign to a final variable elsewhere will cause a NoSuchMethodError to be thrown, because no setter is defined for it. The assignment will also give rise to a static warning for the same reason.
const StaticWarningCode('ASSIGNMENT_TO_FINAL_LOCAL', ''{0}', a final variable, can only be set once.', correction: 'Try making '{0}' non-final.')
ASSIGNMENT_TO_FINAL_NO_SETTER → const StaticWarningCode
5 Variables: Attempting to assign to a final variable elsewhere will cause a NoSuchMethodError to be thrown, because no setter is defined for it. The assignment will also give rise to a static warning for the same reason.
const StaticWarningCode('ASSIGNMENT_TO_FINAL_NO_SETTER', 'No setter named '{0}' in class '{1}'.', correction: 'Try correcting the name to reference an existing sett…
ASSIGNMENT_TO_FUNCTION → const StaticWarningCode
12.18 Assignment: It is as static warning if an assignment of the form v = e occurs inside a top level or static function (be it function, method, getter, or setter) or variable initializer and there is neither a local variable declaration with name v nor setter declaration with name v= in the lexical scope enclosing the assignment.
const StaticWarningCode('ASSIGNMENT_TO_FUNCTION', 'Functions can't be assigned a value.')
ASSIGNMENT_TO_METHOD → const StaticWarningCode
12.18 Assignment: Let T be the static type of e1 It is a static type warning if T does not have an accessible instance setter named v=.
const StaticWarningCode('ASSIGNMENT_TO_METHOD', 'Methods can't be assigned a value.')
ASSIGNMENT_TO_TYPE → const StaticWarningCode
12.18 Assignment: It is as static warning if an assignment of the form v = e occurs inside a top level or static function (be it function, method, getter, or setter) or variable initializer and there is neither a local variable declaration with name v nor setter declaration with name v= in the lexical scope enclosing the assignment.
const StaticWarningCode('ASSIGNMENT_TO_TYPE', 'Types can't be assigned a value.')
CASE_BLOCK_NOT_TERMINATED → const StaticWarningCode
13.9 Switch: It is a static warning if the last statement of the statement sequence sk is not a break, continue, rethrow, return or throw statement.
const StaticWarningCode('CASE_BLOCK_NOT_TERMINATED', 'The last statement of the 'case' should be 'break', 'continue', ' ''rethrow', 'return'…
CAST_TO_NON_TYPE → const StaticWarningCode
No parameters.
const StaticWarningCode('CAST_TO_NON_TYPE', 'The name '{0}' isn't a type, so it can't be used in an 'as' expression.', correction: 'Try changing the name to…
CONCRETE_CLASS_WITH_ABSTRACT_MEMBER → const StaticWarningCode
7.4 Abstract Instance Members: It is a static warning if an abstract member is declared or inherited in a concrete class. [...]
const StaticWarningCode('CONCRETE_CLASS_WITH_ABSTRACT_MEMBER', ''{0}' must have a method body because '{1}' isn't abstract.', correction: 'Try making '{1}&#…
CONST_WITH_ABSTRACT_CLASS → const StaticWarningCode
16.12.2 Const: Given an instance creation expression of the form const q(a1, … an) it is a static warning if q is the constructor of an abstract class but q is not a factory constructor.
const StaticWarningCode('CONST_WITH_ABSTRACT_CLASS', 'Abstract classes can't be created with a 'const' expression.', correction: 'Try creating an instance of a subtype.…
EXPORT_DUPLICATED_LIBRARY_NAMED → const StaticWarningCode
14.2 Exports: It is a static warning to export two different libraries with the same name. [...]
const StaticWarningCode('EXPORT_DUPLICATED_LIBRARY_NAMED', 'The exported libraries '{0}' and '{1}' can't have the same name ' ''{2}'.', correction: …
EXTRA_POSITIONAL_ARGUMENTS → const CompileTimeErrorCode
@Deprecated('Use CompileTimeErrorCode.EXTRA_POSITIONAL_ARGUMENTS')
CompileTimeErrorCode.EXTRA_POSITIONAL_ARGUMENTS
EXTRA_POSITIONAL_ARGUMENTS_COULD_BE_NAMED → const CompileTimeErrorCode
@Deprecated('Use CompileTimeErrorCode.EXTRA_POSITIONAL_ARGUMENTS_COULD_BE_NAMED')
CompileTimeErrorCode.EXTRA_POSITIONAL_ARGUMENTS_COULD_BE_NAMED
FIELD_INITIALIZED_IN_INITIALIZER_AND_DECLARATION → const StaticWarningCode
  • Variables: It is a static warning if a final instance variable that has been initialized at its point of declaration is also initialized in a constructor.
  • const StaticWarningCode('FIELD_INITIALIZED_IN_INITIALIZER_AND_DECLARATION', 'Fields can't be initialized in the constructor if they are final ' 'and have already been initializ…
    FIELD_INITIALIZER_NOT_ASSIGNABLE → const StaticWarningCode
    7.6.1 Generative Constructors: Execution of an initializer of the form this.v = e proceeds as follows: First, the expression e is evaluated to an object o. Then, the instance variable v of the object denoted by this is bound to o. [...]
    const StaticWarningCode('FIELD_INITIALIZER_NOT_ASSIGNABLE', 'The initializer type '{0}' can't be assigned to the field type ' ''{1}'.')
    FIELD_INITIALIZING_FORMAL_NOT_ASSIGNABLE → const StaticWarningCode
    7.6.1 Generative Constructors: An initializing formal has the form this.id. It is a static warning if the static type of id is not assignable to Tid. [...]
    const StaticWarningCode('FIELD_INITIALIZING_FORMAL_NOT_ASSIGNABLE', 'The parameter type '{0}' is incompatible with the field type '{1}'.', correction: 'Try changing…
    FINAL_INITIALIZED_IN_DECLARATION_AND_CONSTRUCTOR → const StaticWarningCode
  • Variables: It is a static warning if a final instance variable that has been initialized at its point of declaration is also initialized in a constructor.
  • [...]
    const StaticWarningCode('FINAL_INITIALIZED_IN_DECLARATION_AND_CONSTRUCTOR', ''{0}' is final and was given a value when it was declared, ' 'so it can't be set to a new v…
    FINAL_NOT_INITIALIZED → const StaticWarningCode
    Parameters: 0: the name of the uninitialized final variable
    const StaticWarningCode('FINAL_NOT_INITIALIZED', 'The final variable '{0}' must be initialized.', correction: 'Try initializing the variable.', hasPublishedDocs: true)
    FINAL_NOT_INITIALIZED_CONSTRUCTOR_1 → const StaticWarningCode
    7.6.1 Generative Constructors: Each final instance variable f declared in the immediately enclosing class must have an initializer in k's initializer list unless it has already been initialized by one of the following means: [...]
    const StaticWarningCode('FINAL_NOT_INITIALIZED_CONSTRUCTOR_1', 'The final variable '{0}' must be initialized.', correction: 'Try adding an initializer for the field.')
    FINAL_NOT_INITIALIZED_CONSTRUCTOR_2 → const StaticWarningCode
    7.6.1 Generative Constructors: Each final instance variable f declared in the immediately enclosing class must have an initializer in k's initializer list unless it has already been initialized by one of the following means: [...]
    const StaticWarningCode('FINAL_NOT_INITIALIZED_CONSTRUCTOR_2', 'The final variables '{0}' and '{1}' must be initialized.', correction: 'Try adding initializers for …
    FINAL_NOT_INITIALIZED_CONSTRUCTOR_3_PLUS → const StaticWarningCode
    7.6.1 Generative Constructors: Each final instance variable f declared in the immediately enclosing class must have an initializer in k's initializer list unless it has already been initialized by one of the following means: [...]
    const StaticWarningCode('FINAL_NOT_INITIALIZED_CONSTRUCTOR_3', 'The final variables '{0}', '{1}' and {2} more must be initialized.', correction: 'Try adding initial…
    IMPORT_DUPLICATED_LIBRARY_NAMED → const StaticWarningCode
    14.1 Imports: It is a static warning to import two different libraries with the same name. [...]
    const StaticWarningCode('IMPORT_DUPLICATED_LIBRARY_NAMED', 'The imported libraries '{0}' and '{1}' can't have the same name ' ''{2}'.', correction: …
    IMPORT_OF_NON_LIBRARY → const CompileTimeErrorCode
    @Deprecated('Use CompileTimeErrorCode.IMPORT_OF_NON_LIBRARY')
    CompileTimeErrorCode.IMPORT_OF_NON_LIBRARY
    INVALID_OVERRIDE_DIFFERENT_DEFAULT_VALUES_NAMED → const StaticWarningCode
    7.1 Instance Methods: It is a static warning if an instance method m1 overrides an instance member m2, the signature of m2 explicitly specifies a default value for a formal parameter p and the signature of m1 specifies a different default value for p.
    const StaticWarningCode('INVALID_OVERRIDE_DIFFERENT_DEFAULT_VALUES_NAMED', 'Parameters can't override default values, this method overrides ' ''{0}.{1}' where '{2}&…
    INVALID_OVERRIDE_DIFFERENT_DEFAULT_VALUES_POSITIONAL → const StaticWarningCode
    7.1 Instance Methods: It is a static warning if an instance method m1 overrides an instance member m2, the signature of m2 explicitly specifies a default value for a formal parameter p and the signature of m1 specifies a different default value for p.
    const StaticWarningCode('INVALID_OVERRIDE_DIFFERENT_DEFAULT_VALUES_POSITIONAL', 'Parameters can't override default values, this method overrides ' ''{0}.{1}' where this…
    INVALID_USE_OF_NEVER_VALUE → const StaticWarningCode
    It is an error to call a method or getter on an expression of type Never, or to invoke it as if it were a function. [...]
    const StaticWarningCode('INVALID_USE_OF_NEVER_VALUE', 'This expression is invalid because its target is of type Never and' ' will never complete with a value', correction: '…
    INVALID_USE_OF_NULL_VALUE → const StaticWarningCode
    For the purposes of experimenting with potential non-null type semantics. [...]
    const StaticWarningCode('INVALID_USE_OF_NULL_VALUE', 'This expression is invalid as it will always be null.', correction: 'Try changing the type, or casting, to a more useful type …
    LIST_ELEMENT_TYPE_NOT_ASSIGNABLE → const StaticWarningCode
    12.6 Lists: A run-time list literal <E> <i>e<sub>1</sub></i> &hellip; <i>e<sub>n</sub></i> is evaluated as follows: [...]
    const StaticWarningCode('LIST_ELEMENT_TYPE_NOT_ASSIGNABLE', 'The element type '{0}' can't be assigned to the list type '{1}'.')
    MAP_KEY_TYPE_NOT_ASSIGNABLE → const StaticWarningCode
    12.7 Map: A run-time map literal <K, V> <i>k<sub>1</sub></i> : <i>e<sub>1</sub></i> &hellip; <i>k<sub>n</sub></i> : <i>e<sub>n</sub></i> is evaluated as follows: [...]
    const StaticWarningCode('MAP_KEY_TYPE_NOT_ASSIGNABLE', 'The element type '{0}' can't be assigned to the map key type ' ''{1}'.')
    MAP_VALUE_TYPE_NOT_ASSIGNABLE → const StaticWarningCode
    12.7 Map: A run-time map literal <K, V> <i>k<sub>1</sub></i> : <i>e<sub>1</sub></i> &hellip; <i>k<sub>n</sub></i> : <i>e<sub>n</sub></i> is evaluated as follows: [...]
    const StaticWarningCode('MAP_VALUE_TYPE_NOT_ASSIGNABLE', 'The element type '{0}' can't be assigned to the map value type ' ''{1}'.')
    MISMATCHED_GETTER_AND_SETTER_TYPES → const StaticWarningCode
    10.3 Setters: It is a compile-time error if a class has a setter named v= with argument type T and a getter named v with return type S, and S may not be assigned to T. [...]
    const StaticWarningCode('MISMATCHED_GETTER_AND_SETTER_TYPES', 'The return type of getter '{0}' is '{1}' which isn't assignable ' 'to the type '{2}' of i…
    MISSING_ENUM_CONSTANT_IN_SWITCH → const StaticWarningCode
    17.9 Switch: It is a static warning if all of the following conditions hold: [...]
    const StaticWarningCode('MISSING_ENUM_CONSTANT_IN_SWITCH', 'Missing case clause for '{0}'.', correction: 'Try adding a case clause for the missing constant, or ' 'a…
    MIXED_RETURN_TYPES → const StaticWarningCode
    13.12 Return: It is a static warning if a function contains both one or more return statements of the form return; and one or more return statements of the form return e;.
    const StaticWarningCode('MIXED_RETURN_TYPES', 'Functions can't include return statements both with and without values.', correction: 'Try making all the return statements consi…
    NEW_WITH_ABSTRACT_CLASS → const StaticWarningCode
    12.11.1 New: It is a static warning if q is a constructor of an abstract class and q is not a factory constructor.
    const StaticWarningCode('NEW_WITH_ABSTRACT_CLASS', 'Abstract classes can't be instantiated.', correction: 'Try creating an instance of a subtype.')
    NEW_WITH_INVALID_TYPE_PARAMETERS → const StaticWarningCode
    15.8 Parameterized Types: Any use of a malbounded type gives rise to a static warning. [...]
    const StaticWarningCode('NEW_WITH_INVALID_TYPE_PARAMETERS', 'The type '{0}' is declared with {1} type parameters, ' 'but {2} type arguments were given.', correction: &#…
    NEW_WITH_NON_TYPE → const StaticWarningCode
    12.11.1 New: It is a static warning if T is not a class accessible in the current scope, optionally followed by type arguments. [...]
    const StaticWarningCode('NEW_WITH_NON_TYPE', 'The name '{0}' isn't a class.', correction: 'Try correcting the name to match an existing class.')
    NEW_WITH_UNDEFINED_CONSTRUCTOR → const StaticWarningCode
    12.11.1 New: If T is a class or parameterized type accessible in the current scope then: [...]
    const StaticWarningCode('NEW_WITH_UNDEFINED_CONSTRUCTOR', 'The class '{0}' doesn't have a constructor named '{1}'.', correction: 'Try invoking a different const…
    NEW_WITH_UNDEFINED_CONSTRUCTOR_DEFAULT → const StaticWarningCode
    12.11.1 New: If T is a class or parameterized type accessible in the current scope then: [...]
    const StaticWarningCode('NEW_WITH_UNDEFINED_CONSTRUCTOR_DEFAULT', 'The class '{0}' doesn't have a default constructor.', correction: 'Try using one of the named constru…
    NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_FIVE_PLUS → const StaticWarningCode
    7.9.1 Inheritance and Overriding: It is a static warning if a non-abstract class inherits an abstract method. [...]
    const StaticWarningCode('NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_FIVE_PLUS', 'Missing concrete implementations of {0}, {1}, {2}, {3} and {4} ' 'more.', correction: 'Try…
    NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_FOUR → const StaticWarningCode
    7.9.1 Inheritance and Overriding: It is a static warning if a non-abstract class inherits an abstract method. [...]
    const StaticWarningCode('NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_FOUR', 'Missing concrete implementations of {0}, {1}, {2} and {3}.', correction: 'Try implementing the missing …
    NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_ONE → const StaticWarningCode
    7.9.1 Inheritance and Overriding: It is a static warning if a non-abstract class inherits an abstract method. [...]
    const StaticWarningCode('NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_ONE', 'Missing concrete implementation of {0}.', correction: 'Try implementing the missing method, or make the …
    NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_THREE → const StaticWarningCode
    7.9.1 Inheritance and Overriding: It is a static warning if a non-abstract class inherits an abstract method. [...]
    const StaticWarningCode('NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_THREE', 'Missing concrete implementations of {0}, {1} and {2}.', correction: 'Try implementing the missing meth…
    NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_TWO → const StaticWarningCode
    7.9.1 Inheritance and Overriding: It is a static warning if a non-abstract class inherits an abstract method. [...]
    const StaticWarningCode('NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_TWO', 'Missing concrete implementations of {0} and {1}.', correction: 'Try implementing the missing methods, or…
    NON_TYPE_IN_CATCH_CLAUSE → const StaticWarningCode
    13.11 Try: An on-catch clause of the form on T catch (p1, p2) s or on T s matches an object o if the type of o is a subtype of T. It is a static warning if T does not denote a type available in the lexical scope of the catch clause. [...]
    const StaticWarningCode('NON_TYPE_IN_CATCH_CLAUSE', 'The name '{0}' isn't a type and can't be used in an on-catch ' 'clause.', correction: 'Try correcting t…
    NON_VOID_RETURN_FOR_OPERATOR → const StaticWarningCode
    7.1.1 Operators: It is a static warning if the return type of the user-declared operator []= is explicitly declared and not void.
    const StaticWarningCode('NON_VOID_RETURN_FOR_OPERATOR', 'The return type of the operator []= must be 'void'.', correction: 'Try changing the return type to 'void'.&…
    NON_VOID_RETURN_FOR_SETTER → const StaticWarningCode
    7.3 Setters: It is a static warning if a setter declares a return type other than void.
    const StaticWarningCode('NON_VOID_RETURN_FOR_SETTER', 'The return type of the setter must be 'void' or absent.', correction: 'Try removing the return type, or ' 'de…
    NOT_A_TYPE → const StaticWarningCode
    Parameters: 0: the name that is not a type
    const StaticWarningCode('NOT_A_TYPE', '{0} isn't a type.', correction: 'Try correcting the name to match an existing type.', hasPublishedDocs: true)
    NOT_ENOUGH_REQUIRED_ARGUMENTS → const CompileTimeErrorCode
    @Deprecated('Use CompileTimeErrorCode.NOT_ENOUGH_POSITIONAL_ARGUMENTS')
    CompileTimeErrorCode.NOT_ENOUGH_POSITIONAL_ARGUMENTS
    PART_OF_DIFFERENT_LIBRARY → const StaticWarningCode
    14.3 Parts: It is a static warning if the referenced part declaration p names a library other than the current library as the library to which p belongs. [...]
    const StaticWarningCode('PART_OF_DIFFERENT_LIBRARY', 'Expected this library to be part of '{0}', not '{1}'.', correction: 'Try including a different part, or changi…
    REDIRECT_TO_INVALID_FUNCTION_TYPE → const StaticWarningCode
    7.6.2 Factories: It is a static warning if the function type of k' is not a subtype of the type of k. [...]
    const StaticWarningCode('REDIRECT_TO_INVALID_FUNCTION_TYPE', 'The redirected constructor '{0}' has incompatible parameters with ' ''{1}'.', correction: 'Try…
    REDIRECT_TO_INVALID_RETURN_TYPE → const StaticWarningCode
    7.6.2 Factories: It is a static warning if the function type of k' is not a subtype of the type of k. [...]
    const StaticWarningCode('REDIRECT_TO_INVALID_RETURN_TYPE', 'The return type '{0}' of the redirected constructor isn't ' 'assignable to '{1}'.', correction: …
    REDIRECT_TO_MISSING_CONSTRUCTOR → const CompileTimeErrorCode
    @Deprecated('Use CompileTimeErrorCode.REDIRECT_TO_MISSING_CONSTRUCTOR')
    CompileTimeErrorCode.REDIRECT_TO_MISSING_CONSTRUCTOR
    REDIRECT_TO_NON_CLASS → const CompileTimeErrorCode
    @Deprecated('Use CompileTimeErrorCode.REDIRECT_TO_NON_CLASS')
    CompileTimeErrorCode.REDIRECT_TO_NON_CLASS
    RETURN_WITHOUT_VALUE → const StaticWarningCode
    13.12 Return: Let f be the function immediately enclosing a return statement of the form return; It is a static warning if both of the following conditions hold: [...]
    const StaticWarningCode('RETURN_WITHOUT_VALUE', 'Missing return value after 'return'.')
    SET_ELEMENT_TYPE_NOT_ASSIGNABLE → const StaticWarningCode
    Parameters: 0: the actual type of the set element 1: the expected type of the set element
    const StaticWarningCode('SET_ELEMENT_TYPE_NOT_ASSIGNABLE', 'The element type '{0}' can't be assigned to the set type '{1}'.')
    STATIC_ACCESS_TO_INSTANCE_MEMBER → const StaticWarningCode
    12.16.3 Static Invocation: It is a static warning if C does not declare a static method or getter m. [...]
    const StaticWarningCode('STATIC_ACCESS_TO_INSTANCE_MEMBER', 'Instance member '{0}' can't be accessed using static access.')
    SWITCH_EXPRESSION_NOT_ASSIGNABLE → const StaticWarningCode
    13.9 Switch: It is a static warning if the type of e may not be assigned to the type of ek.
    const StaticWarningCode('SWITCH_EXPRESSION_NOT_ASSIGNABLE', 'Type '{0}' of the switch expression isn't assignable to ' 'the type '{1}' of case expressions.'…
    TYPE_ANNOTATION_DEFERRED_CLASS → const StaticWarningCode
    15.1 Static Types: It is a static warning to use a deferred type in a type annotation. [...]
    const StaticWarningCode('TYPE_ANNOTATION_DEFERRED_CLASS', 'The deferred type '{0}' can't be used in a declaration, cast or ' 'type test.', correction: 'Try usin…
    TYPE_PARAMETER_REFERENCED_BY_STATIC → const StaticWarningCode
    10 Generics: However, a type parameter is considered to be a malformed type when referenced by a static member. [...]
    const StaticWarningCode('TYPE_PARAMETER_REFERENCED_BY_STATIC', 'Static members can't reference type parameters of the class.', correction: 'Try removing the reference to the ty…
    TYPE_TEST_WITH_NON_TYPE → const StaticWarningCode
    12.31 Type Test: It is a static warning if T does not denote a type available in the current lexical scope.
    const StaticWarningCode('TYPE_TEST_WITH_NON_TYPE', 'The name '{0}' isn't a type and can't be used in an 'is' ' 'expression.', correction: 'Try corre…
    TYPE_TEST_WITH_UNDEFINED_NAME → const StaticWarningCode
    No parameters.
    const StaticWarningCode('TYPE_TEST_WITH_UNDEFINED_NAME', 'The name '{0}' isn't defined, so it can't be used in an 'is' ' 'expression.', correction: '…
    UNCHECKED_USE_OF_NULLABLE_VALUE → const StaticWarningCode
    For the purposes of experimenting with potential non-null type semantics. [...]
    const StaticWarningCode('UNCHECKED_USE_OF_NULLABLE_VALUE', 'The expression is nullable and must be null-checked before it can ' 'be used.', correction: 'Try checking that t…
    UNDEFINED_CLASS → const CompileTimeErrorCode
    @Deprecated('Use CompileTimeErrorCode.UNDEFINED_CLASS')
    CompileTimeErrorCode.UNDEFINED_CLASS
    UNDEFINED_CLASS_BOOLEAN → const StaticWarningCode
    Same as CompileTimeErrorCode.UNDEFINED_CLASS, but to catch using "boolean" instead of "bool".
    const StaticWarningCode('UNDEFINED_CLASS_BOOLEAN', 'Undefined class 'boolean'.', correction: 'Try using the type 'bool'.')
    UNDEFINED_IDENTIFIER → const StaticWarningCode
    Parameters: 0: the name of the identifier
    const StaticWarningCode('UNDEFINED_IDENTIFIER', 'Undefined name '{0}'.', correction: 'Try correcting the name to one that is defined, or ' 'defining the name.',…
    UNDEFINED_IDENTIFIER_AWAIT → const StaticWarningCode
    If the identifier is 'await', be helpful about it.
    const StaticWarningCode('UNDEFINED_IDENTIFIER_AWAIT', 'Undefined name 'await' in function body not marked with 'async'.', correction: 'Try correcting the name to on…
    UNDEFINED_NAMED_PARAMETER → const CompileTimeErrorCode
    @Deprecated('Use CompileTimeErrorCode.UNDEFINED_NAMED_PARAMETER')
    CompileTimeErrorCode.UNDEFINED_NAMED_PARAMETER
    UNNECESSARY_NON_NULL_ASSERTION → const StaticWarningCode
    When the '!' operator is used on a value that we know to be non-null, it is unnecessary.
    const StaticWarningCode('UNNECESSARY_NON_NULL_ASSERTION', 'The '!' will have no effect because the target expression cannot be' ' null.', correction: 'Try removing …
    UNNECESSARY_NULL_AWARE_CALL → const StaticWarningCode
    When the '?.' operator is used on a target that we know to be non-null, it is unnecessary.
    const StaticWarningCode('UNNECESSARY_NULL_AWARE_CALL', 'The target expression can't be null, and so '?.' isn't necessary.', correction: 'Try replacing the '?.&#…
    UNNECESSARY_NULL_AWARE_SPREAD → const StaticWarningCode
    When the '...?' operator is used on a value that we know to be non-null, it is unnecessary.
    const StaticWarningCode('UNNECESSARY_NULL_AWARE_SPREAD', 'The target expression can't be null, so it isn't necessary to use ' 'the null-aware spread operator '...?'…
    USE_OF_VOID_RESULT → const StaticWarningCode
    It is a static warning to assign void to any non-void type in dart. compile-time error). Report that error specially for a better user experience. [...]
    const StaticWarningCode('USE_OF_VOID_RESULT', 'The expression here has a type of 'void', and therefore can't be used.', correction: 'Try checking to see if you're u…