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
Implementers

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
Parameters: 0: the name of the ambiguous type 1: the name of the first library that the type is found 2: the name of the second library that the type is found
StaticWarningCode('AMBIGUOUS_IMPORT', 'The name '{0}' is defined in the libraries {1}.', correction: 'Try using 'as prefix' for one of the import directives, or …
ARGUMENT_TYPE_NOT_ASSIGNABLE → const StaticWarningCode
Parameters: 0: the name of the actual argument type 1: the name of the expected type
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. [...]
StaticWarningCode('ASSIGNMENT_TO_CONST', 'Constant variables can't be assigned a value.', correction: 'Try removing the assignment, or ' 'remove the modifier 'const…
ASSIGNMENT_TO_FINAL → const StaticWarningCode
Parameters: 0: the name of the final variable
StaticWarningCode('ASSIGNMENT_TO_FINAL', ''{0}' can't be used as a setter because it's 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.
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
No parameters.
StaticWarningCode('ASSIGNMENT_TO_FINAL_NO_SETTER', 'There isn’t a setter named '{0}' in class '{1}'.', correction: 'Try correcting the name to reference an existing…
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.
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=.
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.
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.
StaticWarningCode('CASE_BLOCK_NOT_TERMINATED', 'The last statement of the 'case' should be 'break', 'continue', ' ''rethrow', 'return' or &#…
CAST_TO_NON_TYPE → const StaticWarningCode
No parameters.
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 the n…
CONCRETE_CLASS_WITH_ABSTRACT_MEMBER → const StaticWarningCode
Parameters: 0: the name of the abstract method 1: the name of the enclosing class
StaticWarningCode('CONCRETE_CLASS_WITH_ABSTRACT_MEMBER', ''{0}' must have a method body because '{1}' isn't abstract.', correction: 'Try making '{1}' ab…
CONST_WITH_ABSTRACT_CLASS → const StaticWarningCode
@Deprecated('Use StaticWarningCode.INSTANTIATE_ABSTRACT_CLASS')
INSTANTIATE_ABSTRACT_CLASS
DEAD_NULL_COALESCE → const StaticWarningCode
It is a warning to use null aware operators '??' or '??=' on an expression of type T if T is strictly non-nullable.
StaticWarningCode('DEAD_NULL_COALESCE', 'The left operand can't be null, so the right operand is never executed.', correction: 'Try removing the right operand.', errorSever…
EXPORT_DUPLICATED_LIBRARY_NAMED → const StaticWarningCode
14.2 Exports: It is a static warning to export two different libraries with the same name. [...]
StaticWarningCode('EXPORT_DUPLICATED_LIBRARY_NAMED', 'The exported libraries '{0}' and '{1}' can't have the same name ' ''{2}'.', correction: 'T…
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.
  • StaticWarningCode('FIELD_INITIALIZED_IN_INITIALIZER_AND_DECLARATION', 'Fields can't be initialized in the constructor if they are final ' 'and have already been initialized at …
    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. [...]
    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. [...]
    StaticWarningCode('FIELD_INITIALIZING_FORMAL_NOT_ASSIGNABLE', 'The parameter type '{0}' is incompatible with the field type '{1}'.', correction: 'Try changing or re…
    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.
  • [...]
    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 value.&…
    FINAL_NOT_INITIALIZED → const StaticWarningCode
    Parameters: 0: the name of the uninitialized final variable
    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
    Parameters: 0: the name of the uninitialized final variable
    StaticWarningCodeWithUniqueName('FINAL_NOT_INITIALIZED_CONSTRUCTOR', 'StaticWarningCode.FINAL_NOT_INITIALIZED_CONSTRUCTOR_1', 'All final variables must be initialized, but '{0}…
    FINAL_NOT_INITIALIZED_CONSTRUCTOR_2 → const StaticWarningCode
    Parameters: 0: the name of the uninitialized final variable 1: the name of the uninitialized final variable
    StaticWarningCodeWithUniqueName('FINAL_NOT_INITIALIZED_CONSTRUCTOR', 'StaticWarningCode.FINAL_NOT_INITIALIZED_CONSTRUCTOR_2', 'All final variables must be initialized, but '{0}…
    FINAL_NOT_INITIALIZED_CONSTRUCTOR_3_PLUS → const StaticWarningCode
    Parameters: 0: the name of the uninitialized final variable 1: the name of the uninitialized final variable 2: the number of additional not initialized variables that aren't listed
    StaticWarningCodeWithUniqueName('FINAL_NOT_INITIALIZED_CONSTRUCTOR', 'StaticWarningCode.FINAL_NOT_INITIALIZED_CONSTRUCTOR_3', 'All final variables must be initialized, but '{0}…
    IMPORT_DUPLICATED_LIBRARY_NAMED → const StaticWarningCode
    14.1 Imports: It is a static warning to import two different libraries with the same name. [...]
    StaticWarningCode('IMPORT_DUPLICATED_LIBRARY_NAMED', 'The imported libraries '{0}' and '{1}' can't have the same name ' ''{2}'.', correction: 'T…
    IMPORT_OF_NON_LIBRARY → const CompileTimeErrorCode
    @Deprecated('Use CompileTimeErrorCode.IMPORT_OF_NON_LIBRARY')
    CompileTimeErrorCode.IMPORT_OF_NON_LIBRARY
    INSTANTIATE_ABSTRACT_CLASS → const StaticWarningCode
    No parameters.
    StaticWarningCode('INSTANTIATE_ABSTRACT_CLASS', 'Abstract classes can't be instantiated.', correction: 'Try creating an instance of a concrete subtype.')
    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.
    StaticWarningCode('INVALID_OVERRIDE_DIFFERENT_DEFAULT_VALUES_NAMED', 'Parameters can't override default values, this method overrides ' ''{0}.{1}' where '{2}' h…
    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.
    StaticWarningCode('INVALID_OVERRIDE_DIFFERENT_DEFAULT_VALUES_POSITIONAL', 'Parameters can't override default values, this method overrides ' ''{0}.{1}' where this posit…
    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. [...]
    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: 'Try c…
    INVALID_USE_OF_NULL_VALUE → const StaticWarningCode
    For the purposes of experimenting with potential non-null type semantics. [...]
    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 like &…
    LIST_ELEMENT_TYPE_NOT_ASSIGNABLE → const StaticWarningCode
    Parameters: 0: the actual type of the list element 1: the expected type of the list element
    StaticWarningCode('LIST_ELEMENT_TYPE_NOT_ASSIGNABLE', 'The element type '{0}' can't be assigned to the list type '{1}'.', hasPublishedDocs: true)
    MAP_KEY_TYPE_NOT_ASSIGNABLE → const StaticWarningCode
    Parameters: 0: the type of the expression being used as a key 1: the type of keys declared for the map
    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
    Parameters: 0: the type of the expression being used as a value 1: the type of values declared for the map
    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. [...]
    StaticWarningCode('MISMATCHED_GETTER_AND_SETTER_TYPES', 'The return type of getter '{0}' is '{1}' which isn't assignable ' 'to the type '{2}' of its set…
    MISSING_ENUM_CONSTANT_IN_SWITCH → const StaticWarningCode
    Parameters: 0: the name of the constant that is missing
    StaticWarningCode('MISSING_ENUM_CONSTANT_IN_SWITCH', 'Missing case clause for '{0}'.', correction: 'Try adding a case clause for the missing constant, or ' 'adding …
    MIXED_RETURN_TYPES → const StaticWarningCode
    @Deprecated('No longer an error in the spec and no longer generated')
    StaticWarningCode('MIXED_RETURN_TYPES', 'Functions can't include return statements both with and without values.', correction: 'Try making all the return statements consistent …
    NEW_WITH_ABSTRACT_CLASS → const StaticWarningCode
    @Deprecated('Use StaticWarningCode.INSTANTIATE_ABSTRACT_CLASS')
    INSTANTIATE_ABSTRACT_CLASS
    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. [...]
    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: [...]
    StaticWarningCode('NEW_WITH_UNDEFINED_CONSTRUCTOR', 'The class '{0}' doesn't have a constructor named '{1}'.', correction: 'Try invoking a different constructor…
    NEW_WITH_UNDEFINED_CONSTRUCTOR_DEFAULT → const StaticWarningCode
    Parameters: 0: the name of the class being instantiated
    StaticWarningCode('NEW_WITH_UNDEFINED_CONSTRUCTOR_DEFAULT', 'The class '{0}' doesn't have a default constructor.', correction: 'Try using one of the named constructors …
    NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_FIVE_PLUS → const StaticWarningCode
    Parameters: 0: the name of the first member 1: the name of the second member 2: the name of the third member 3: the name of the fourth member 4: the number of additional missing members that aren't listed
    StaticWarningCodeWithUniqueName('NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER', 'StaticWarningCode.NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_FIVE_PLUS', 'Missing concrete implemen…
    NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_FOUR → const StaticWarningCode
    Parameters: 0: the name of the first member 1: the name of the second member 2: the name of the third member 3: the name of the fourth member
    StaticWarningCodeWithUniqueName('NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER', 'StaticWarningCode.NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_FOUR', 'Missing concrete implementatio…
    NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_ONE → const StaticWarningCode
    Parameters: 0: the name of the member
    StaticWarningCodeWithUniqueName('NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER', 'StaticWarningCode.NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_ONE', 'Missing concrete implementation…
    NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_THREE → const StaticWarningCode
    Parameters: 0: the name of the first member 1: the name of the second member 2: the name of the third member
    StaticWarningCodeWithUniqueName('NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER', 'StaticWarningCode.NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_THREE', 'Missing concrete implementati…
    NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_TWO → const StaticWarningCode
    Parameters: 0: the name of the first member 1: the name of the second member
    StaticWarningCodeWithUniqueName('NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER', 'StaticWarningCode.NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_TWO', 'Missing concrete implementation…
    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. [...]
    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 the nam…
    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.
    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.
    StaticWarningCode('NON_VOID_RETURN_FOR_SETTER', 'The return type of the setter must be 'void' or absent.', correction: 'Try removing the return type, or ' 'define a…
    NOT_A_TYPE → const StaticWarningCode
    Parameters: 0: the name that is not a type
    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. [...]
    StaticWarningCode('PART_OF_DIFFERENT_LIBRARY', 'Expected this library to be part of '{0}', not '{1}'.', correction: 'Try including a different part, or changing the…
    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. [...]
    StaticWarningCode('REDIRECT_TO_INVALID_FUNCTION_TYPE', 'The redirected constructor '{0}' has incompatible parameters with ' ''{1}'.', correction: 'Try redir…
    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. [...]
    StaticWarningCode('REDIRECT_TO_INVALID_RETURN_TYPE', 'The return type '{0}' of the redirected constructor isn't ' 'assignable to '{1}'.', correction: 'T…
    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: [...]
    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
    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
    Parameters: 0: the name of the instance member
    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.
    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. [...]
    StaticWarningCode('TYPE_ANNOTATION_DEFERRED_CLASS', 'The deferred type '{0}' can't be used in a declaration, cast or ' 'type test.', correction: 'Try using a di…
    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. [...]
    StaticWarningCode('TYPE_PARAMETER_REFERENCED_BY_STATIC', 'Static members can't reference type parameters of the class.', correction: 'Try removing the reference to the type par…
    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.
    StaticWarningCode('TYPE_TEST_WITH_NON_TYPE', 'The name '{0}' isn't a type and can't be used in an 'is' ' 'expression.', correction: 'Try correcting …
    TYPE_TEST_WITH_UNDEFINED_NAME → const StaticWarningCode
    No parameters.
    StaticWarningCode('TYPE_TEST_WITH_UNDEFINED_NAME', 'The name '{0}' isn't defined, so it can't be used in an 'is' ' 'expression.', correction: 'Try c…
    UNCHECKED_USE_OF_NULLABLE_VALUE → const StaticWarningCode
    For the purposes of experimenting with potential non-null type semantics. [...]
    StaticWarningCode('UNCHECKED_USE_OF_NULLABLE_VALUE', 'The expression is nullable and must be null-checked before it can ' 'be used.', correction: 'Try checking that the val…
    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".
    StaticWarningCode('UNDEFINED_CLASS_BOOLEAN', 'Undefined class 'boolean'.', correction: 'Try using the type 'bool'.')
    UNDEFINED_IDENTIFIER → const StaticWarningCode
    Parameters: 0: the name of the identifier
    StaticWarningCode('UNDEFINED_IDENTIFIER', 'Undefined name '{0}'.', correction: 'Try correcting the name to one that is defined, or ' 'defining the name.', hasPu…
    UNDEFINED_IDENTIFIER_AWAIT → const StaticWarningCode
    If the identifier is 'await', be helpful about it.
    StaticWarningCode('UNDEFINED_IDENTIFIER_AWAIT', 'Undefined name 'await' in function body not marked with 'async'.', correction: 'Try correcting the name to one that…
    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.
    StaticWarningCode('UNNECESSARY_NON_NULL_ASSERTION', 'The '!' will have no effect because the target expression cannot be' ' null.', correction: 'Try removing the &#…
    UNNECESSARY_NULL_AWARE_CALL → const StaticWarningCode
    When the '?.' operator is used on a target that we know to be non-null, it is unnecessary.
    StaticWarningCode('UNNECESSARY_NULL_AWARE_CALL', 'The target expression can't be null, and so '?.' isn't necessary.', correction: 'Try replacing the '?.' wi…
    UNNECESSARY_NULL_AWARE_SPREAD → const StaticWarningCode
    When the '...?' operator is used on a value that we know to be non-null, it is unnecessary.
    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
    No parameters.
    StaticWarningCode('USE_OF_VOID_RESULT', 'This expression has a type of 'void' so its value can't be used.', correction: 'Try checking to see if you're using the cor…