Try adding an 'Array' annotation, or removing all but one of the annotations.
- Code
missing_size_annotation_carray- Severity
- error
- Message
Fields of type 'Array' must have exactly one 'Array' annotation.
Try removing the modifier, or add a star.
- Code
missing_star_after_sync- Severity
- error
- Message
The modifier 'sync' must be followed by a star ('*').
- Code
missing_statement- Severity
- error
- Message
Expected a statement.
Try adding a parameter list.
- Code
missing_typedef_parameters- Severity
- error
- Message
Typedefs must have an explicit list of parameters.
Try declaring a loop variable.
- Code
missing_variable_in_for_each- Severity
- error
- Message
A loop variable must be declared in a for-each loop before the 'in', but none was found.
Try declaring this variable pattern in the branch.
- Code
missing_variable_pattern- Severity
- error
- Message
Variable pattern '{}' is missing in this branch of the logical-or pattern.
Try choosing a single style of optional parameters.
- Code
mixed_parameter_groups- Severity
- error
- Message
Can't have both positional and named parameters in a single parameter list.
- Code
mixin_application_class_augmentation- Severity
- error
- Message
A mixin application class can't be augmented.
- Code
mixin_application_concrete_super_invoked_member_type- Severity
- error
- Message
The super-invoked member '{}' has the type '{}', and the concrete member in the class has the type '{}'.
- Code
mixin_application_no_concrete_super_invoked_member- Severity
- error
- Message
The class doesn't have a concrete implementation of the super-invoked setter '{}'.- Message
The class doesn't have a concrete implementation of the super-invoked member '{}'.
Try extending the class '…'.
- Code
mixin_application_not_implemented_interface- Severity
- error
- Message
'{}' can't be mixed onto '{}' because '{}' doesn't implement '{}'.
Try removing the 'on' clause.
- Code
mixin_augmentation_has_on_clause- Severity
- error
- Message
Mixin augmentations can't have 'on' clauses.
Try removing the 'mixin' modifier or changing the superclass to 'Object'.
- Code
mixin_class_declaration_extends_not_object- Severity
- error
- Message
The class '{}' can't be declared a mixin because it extends a class other than 'Object'.
Try removing the 'with' clause or removing the 'mixin' modifier from the class.
- Code
mixin_class_declaration_with_clause- Severity
- error
- Message
The class '{}' can't be declared a mixin because it has a 'with' clause.
- Code
mixin_class_declares_non_trivial_generative_constructor- Severity
- error
- Message
The mixin class '{}' can't declare a non-trivial generative constructor.
- Code
mixin_declares_constructor- Severity
- error
- Message
Mixins can't declare constructors.
- Code
mixin_inherits_from_not_object- Severity
- error
- Message
The class '{}' can't be used as a mixin because it extends a class other than 'Object'.
- Code
mixin_instantiate- Severity
- error
- Message
Mixins can't be instantiated.
Try removing all but one mixin.
- Code
mixin_modifier_mixin_application_class_with_multiple_mixins- Severity
- error
- Message
The mixin application class '{}' can only have a single mixin.
- Code
mixin_of_non_class- Severity
- error
- Message
Classes can only mix in mixins and classes.
Try composing with this class, or refer to its documentation for more information.
- Code
mixin_on_sealed_class- Severity
- warning
- Message
The class '{}' shouldn't be used as a mixin constraint because it is sealed, and any class mixing in this mixin must have '{}' as a superclass.
Try removing the primary constructor or changing the mixin to a class.
- Code
mixin_primary_constructor- Severity
- error
- Message
Mixins can't have primary constructors.
Try changing the import to not be deferred.
- Code
mixin_super_class_constraint_deferred_class- Severity
- error
- Message
Deferred classes can't be used as superclass constraints.
- Code
mixin_super_class_constraint_non_interface- Severity
- error
- Message
Only classes and mixins can be used as superclass constraints.
- Code
mixin_with_clause- Severity
- error
- Message
A mixin can't have a with clause.
- Code
mixin_with_non_class_superclass- Severity
- error
- Message
Mixin can only be applied to class.
Try re-ordering the modifiers.
- Code
modifier_out_of_order- Severity
- error
- Message
The modifier '{}' should be before the modifier '{}'.
Try combining all of the '…' clauses into a single clause.
- Code
multiple_clauses- Severity
- error
- Message
Each '{}' definition can have at most one '{}' clause.
Try using a single combinator.
- Code
multiple_combinators- Severity
- warning
- Message
Using multiple 'hide' or 'show' combinators is never necessary and often produces surprising results.- Message
At most one 'show' or 'hide' combinator can be used on an import or export directive.
Try choosing one superclass and define your class to implement (or mix in) the others.
- Code
multiple_extends_clauses- Severity
- error
- Message
Each class definition can have at most one extends clause.
Try combining all of the implements clauses into a single clause.
- Code
multiple_implements_clauses- Severity
- error
- Message
Each class or mixin definition can have at most one implements clause.
Try removing all but one of the library directives.
- Code
multiple_library_directives- Severity
- error
- Message
Only one library directive may be declared in a file.
Try combining all of the groups into a single group.
- Code
multiple_named_parameter_groups- Severity
- error
- Message
Can't have multiple groups of named parameters in a single parameter list.
Try combining all of the on clauses into a single clause.
- Code
multiple_on_clauses- Severity
- error
- Message
Each mixin definition can have at most one on clause.
Try removing all but one of the part-of directives.
- Code
multiple_part_of_directives- Severity
- error
- Message
Only one part-of directive may be declared in a file.
Remove all plugins following the first, '…'.
- Code
multiple_plugins- Severity
- warning
- Message
Multiple plugins can't be enabled.
Try combining all of the groups into a single group.
- Code
multiple_positional_parameter_groups- Severity
- error
- Message
Can't have multiple groups of positional parameters in a single parameter list.
Try removing all but one of the primary constructor body declarations.
- Code
multiple_primary_constructor_body_declarations- Severity
- error
- Message
Only one primary constructor body declaration is allowed.
Try removing all but one of the redirections.
- Code
multiple_redirecting_constructor_invocations- Severity
- error
- Message
Constructors can have only one 'this' redirection, at most.
Try combining fields into a record, or removing extra fields.
- Code
multiple_representation_fields- Severity
- error
- Message
Each extension type should have exactly one representation field.
Try removing all but one of the 'super' initializers.
- Code
multiple_super_initializers- Severity
- error
- Message
A constructor can have at most one 'super' initializer.
Use at most one of the 'in', 'out', or 'inout' modifiers.
- Code
multiple_variance_modifiers- Severity
- error
- Message
Each type parameter can have at most one variance modifier.
Try combining all of the with clauses into a single clause.
- Code
multiple_with_clauses- Severity
- error
- Message
Each class definition can have at most one with clause.
Try changing the type to only use members for 'dart:ffi'.
- Code
must_be_anative_function_type- Severity
- error
- Message
The type '{}' given to '{}' must be a valid 'dart:ffi' native function type.
Try changing one or both of the type arguments.
- Code
must_be_asubtype- Severity
- error
- Message
The type '{}' must be a subtype of '{}' for '{}'.
- Code
must_be_immutable- Severity
- warning
- Message
This class (or a class that this class inherits from) is marked as '@immutable', but one or more of its instance fields aren't final: {}
- Code
must_call_super- Severity
- warning
- Message
This method overrides a method annotated as '@mustCallSuper' in '{}', but doesn't invoke the overridden method.
Try changing the return type to 'void'.
- Code
must_return_void- Severity
- error
- Message
The return type of the function passed to 'NativeCallable.listener' must be 'void' rather than '{}'.
Try converting the value to be a string.
- Code
name_not_string- Severity
- warning
- Message
The value of the 'name' field is required to be a string.
Try removing the name, or moving the function expression to a function declaration statement.
- Code
named_function_expression- Severity
- error
- Message
Function expressions can't be named.
Try replacing the name with the keyword 'Function'.
- Code
named_function_type- Severity
- error
- Message
Function types can't be named.
Try surrounding the named parameters in curly braces.
- Code
named_parameter_outside_group- Severity
- error
- Message
Named parameters must be enclosed in curly braces ('{' and '}').
Try removing the native clause.
- Code
native_clause_in_non_sdk_code- Severity
- error
- Message
Native clause can only be used in the SDK and code that is loaded through native extensions.
Try removing this native clause and adding @native() or @native('native-name') before the declaration.
- Code
native_clause_should_be_annotation- Severity
- error
- Message
Native clause in this form is deprecated.
Try changing the type in the `@Native` annotation to a numeric FFI type, a pointer, array, or a compound class.
- Code
native_field_invalid_type- Severity
- error
- Message
'{}' is an unsupported type for native fields. Native fields only support pointers, arrays or numeric and compound types.
Try adding a type parameter extending `NativeType` to the `@Native` annotation.
- Code
native_field_missing_type- Severity
- error
- Message
The native type of this field could not be inferred and must be specified in the annotation.
Try adding the modifier 'static' to this field.
- Code
native_field_not_static- Severity
- error
- Message
Native fields must be static.
Try removing the word 'native'.
- Code
native_function_body_in_non_sdk_code- Severity
- error
- Message
Native functions can only be declared in the SDK and code that is loaded through native extensions.
Try adding a type parameter extending `NativeType` to the `@Native` annotation.
- Code
native_function_missing_type- Severity
- error
- Message
The native type of this function couldn't be inferred so it must be specified in the annotation.
Try using a value that is zero or greater.
- Code
negative_variable_dimension- Severity
- error
- Message
The variable dimension of a variable-length array must be non-negative.
Try replacing the '.' with a space.
- Code
new_constructor_dot_name- Severity
- error
- Message
Constructors declared with the 'new' keyword can't use '.' before the constructor name.
Try removing the second 'new' or changing it to a different name.
- Code
new_constructor_new_name- Severity
- error
- Message
Constructors declared with the 'new' keyword can't be named 'new'.
Try removing the class name prefix from the qualified name or removing the 'new' keyword.
- Code
new_constructor_qualified_name- Severity
- error
- Message
Constructors declared with the 'new' keyword can't have qualified names.
Try invoking a different constructor, or define a constructor named '…'.
- Code
new_with_undefined_constructor- Severity
- error
- Message
The class '{}' doesn't have a constructor named '{}'.
Try using one of the named constructors defined in '…'.
- Code
new_with_undefined_constructor_default- Severity
- error
- Message
The class '{}' doesn't have an unnamed constructor.
Try adding an empty argument list.
- Code
no_annotation_constructor_arguments- Severity
- error
- Message
Annotation creation must have arguments.
Try providing explicit types for this method's parameters and return type.
- Code
no_combined_super_signature- Severity
- error
- Message
Can't infer missing types in '{}' from overridden methods: {}.
Try declaring a zero argument constructor in '…', or explicitly invoking a different constructor in '…'.
- Code
no_default_super_constructor- Severity
- error
- Message
The superclass '{}' doesn't have a zero argument constructor.
Try implementing the class instead, adding a generative (not factory) constructor to the superclass '…', or a factory constructor to the subclass.
- Code
no_generative_constructors_in_superclass- Severity
- error
- Message
The class '{}' can't extend '{}' because '{}' only has factory constructors (no generative constructors), and '{}' has at least one generative constructor.
Consider adding <uses-feature android:name="android.hardware.touchscreen" android:required="false" /> to the manifest.
- Code
no_touchscreen_feature- Severity
- warning
- Message
The default "android.hardware.touchscreen" needs to be optional for Chrome OS.
Try implementing the missing methods, or make the class abstract.
- Code
non_abstract_class_inherits_abstract_member- Severity
- error
- Message
Missing concrete implementations of '{}', '{}', '{}', '{}', and {} more.- Message
Missing concrete implementations of '{}', '{}', '{}', and '{}'.- Message
Missing concrete implementation of '{}'.- Message
Missing concrete implementations of '{}', '{}', and '{}'.- Message
Missing concrete implementations of '{}' and '{}'.
Try changing the condition.
- Code
non_bool_condition- Severity
- error
- Message
Conditions must have a static type of 'bool'.
Try changing the expression.
- Code
non_bool_expression- Severity
- error
- Message
The expression in an assert must be of type 'bool'.
Try changing the operand to the '!' operator.
- Code
non_bool_negation_expression- Severity
- error
- Message
A negation operand must have a static type of 'bool'.
- Code
non_bool_operand- Severity
- error
- Message
The operands of the operator '{}' must be assignable to 'bool'.
Try replacing the argument with a constant.
- Code
non_const_argument_for_const_parameter- Severity
- warning
- Message
Argument '{}' must be a constant.
Try replacing the 'new' keyword with 'const'.
- Code
non_const_call_to_literal_constructor- Severity
- warning
- Message
This instance creation must be 'const', because '{}' is marked as '@literal'.
Try adding the keyword 'const'.
- Code
non_const_generative_enum_constructor- Severity
- error
- Message
Generative enum constructors must be 'const'.
- Code
non_const_map_as_expression_statement- Severity
- error
- Message
A non-constant map or set literal without type arguments can't be used as an expression statement.
- Code
non_constant_case_expression- Severity
- error
- Message
Case expressions must be constant.
Try re-writing the switch as a series of if statements, or changing the import to not be deferred.
- Code
non_constant_case_expression_from_deferred_library- Severity
- error
- Message
Constant values from a deferred library can't be used as a case expression.
- Code
non_constant_default_value- Severity
- error
- Message
The default value of an optional parameter must be constant.
Try leaving the default as 'null' and initializing the parameter inside the function body.
- Code
non_constant_default_value_from_deferred_library- Severity
- error
- Message
Constant values from a deferred library can't be used as a default parameter value.
Try removing the keyword 'const' from the list literal.
- Code
non_constant_list_element- Severity
- error
- Message
The values in a const list literal must be constants.
Try removing the keyword 'const' from the map literal.
- Code
non_constant_map_element- Severity
- error
- Message
The elements in a const map literal must be constant.
Try removing the keyword 'const' from the map literal.
- Code
non_constant_map_key- Severity
- error
- Message
The keys in a const map literal must be constant.
Try using constants instead.
- Code
non_constant_map_pattern_key- Severity
- error
- Message
Key expressions in map patterns must be constants.
Try removing the keyword 'const' from the map literal.
- Code
non_constant_map_value- Severity
- error
- Message
The values in a const map literal must be constant.
Try removing the keyword 'const' from the record literal.
- Code
non_constant_record_field- Severity
- error
- Message
The fields in a const record literal must be constants.
Try removing the keyword 'const' from the record literal or removing the keyword 'deferred' from the import.
- Code
non_constant_record_field_from_deferred_library- Severity
- error
- Message
Constant values from a deferred library can't be used as fields in a 'const' record literal.
Try using a constant instead.
- Code
non_constant_relational_pattern_expression- Severity
- error
- Message
The relational pattern expression must be a constant.
Try removing the keyword 'const' from the set literal.
- Code
non_constant_set_element- Severity
- error
- Message
The values in a const set literal must be constants.
Try changing the type argument to be a constant type.
- Code
non_constant_type_argument- Severity
- error
- Message
The type arguments to '{}' must be known at compile time, so they can't be type parameters.
Try removing the keyword 'factory'.
- Code
non_constructor_factory- Severity
- error
- Message
Only a constructor can be declared to be a factory.
Try removing the type parameters from function parameter types and type parameter bounds.
- Code
non_covariant_type_parameter_position_in_representation_type- Severity
- error
- Message
An extension type parameter can't be used in a non-covariant position of its representation type.
Try adding a wildcard pattern or cases that match '…'.
- Code
non_exhaustive_switch_expression- Severity
- error
- Message
The type '{}' isn't exhaustively matched by the switch cases since it doesn't match the pattern '{}'.- Message
The enum '{}' isn't exhaustively matched by the switch cases because some of the enum constants are private.
Try adding a default case or cases that match '…'.
- Code
non_exhaustive_switch_statement- Severity
- error
- Message
The type '{}' isn't exhaustively matched by the switch cases since it doesn't match the pattern '{}'.- Message
The enum '{}' isn't exhaustively matched by the switch cases because some of the enum constants are private.
Try making the field final.
- Code
non_final_field_in_enum- Severity
- error
- Message
Enums can only declare final fields.
Try calling a different constructor of the superclass, or making the called constructor not be a factory constructor.
- Code
non_generative_constructor- Severity
- error
- Message
The generative constructor '{}' is expected, but a factory was found.
Try adding an explicit constructor that has a different superinitializer or changing the superclass constructor '…' to not be a factory constructor.
- Code
non_generative_implicit_constructor- Severity
- error
- Message
The unnamed constructor of superclass '{}' (called by the default constructor of '{}') must be a generative constructor, but factory found.
Try using an identifier as the name of the library.
- Code
non_identifier_library_name- Severity
- error
- Message
The name of a library must be an identifier.
Try changing the function argument in 'NativeFunction' to only use NativeTypes.
- Code
non_native_function_type_argument_to_pointer- Severity
- error
- Message
Can't invoke 'asFunction' because the function signature '{}' for the pointer isn't a valid C function signature.
Try using a non-nullable type.
- Code
non_nullable_equals_parameter- Severity
- warning
- Message
The parameter type of '==' operators should be non-nullable.
Try removing the other directives, or moving them to the library for which this is a part.
- Code
non_part_of_directive_in_part- Severity
- error
- Message
The part-of directive must be the only directive in a part.
Try changing the input to a positive number.
- Code
non_positive_array_dimension- Severity
- error
- Message
Array dimensions must be positive numbers.
Try making the constructor redirect to the primary constructor, or remove the primary constructor.
- Code
non_redirecting_generative_constructor_with_primary- Severity
- error
- Message
Classes with primary constructors can't have non-redirecting generative constructors.
Consider declaring the corresponding activity element with `resizableActivity="true"` attribute.
- Code
non_resizable_activity- Severity
- warning
- Message
The `<activity>` element should be allowed to be resized to allow users to take advantage of the multi-window environment on Chrome OS
Try using a native integer, 'Float', 'Double', 'Pointer', or subtype of 'Struct', 'Union', or 'AbiSpecificInteger'.
- Code
non_sized_type_argument- Severity
- error
- Message
The type '{}' isn't a valid type argument for '{}'. The type argument must be a native integer, 'Float', 'Double', 'Pointer', or subtype of 'Struct', 'Union', or 'AbiSpecificInteger'.
Try enclosing the URI in either single or double quotes.
- Code
non_string_literal_as_uri- Severity
- error
- Message
The URI must be a string literal.
- Code
non_sync_factory- Severity
- error
- Message
Factory bodies can't use 'async', 'async*', or 'sync*'.
Try correcting the name to an existing type, or defining a type named '…'.
- Code
non_type_as_type_argument- Severity
- error
- Message
The name '{}' isn't a type, so it can't be used as a type argument.
Try correcting the name to match an existing class.
- Code
non_type_in_catch_clause- Severity
- error
- Message
The name '{}' isn't a type and can't be used in an on-catch clause.
Try changing the return type to 'void'.
- Code
non_void_return_for_operator- Severity
- error
- Message
The return type of the operator []= must be 'void'.
Try removing the return type, or define a method rather than a setter.
- Code
non_void_return_for_setter- Severity
- error
- Message
The return type of the setter must be 'void' or absent.
Try moving all of the normal parameters before the optional parameters.
- Code
normal_before_optional_parameters- Severity
- error
- Message
Normal parameters must occur before optional parameters.
Try giving it an initializer expression, or ensure that it's assigned on every execution path.
- Code
not_assigned_potentially_non_nullable_local_variable- Severity
- error
- Message
The non-nullable local variable '{}' must be assigned before it can be used.
Try correcting the name to match an existing type.
- Code
not_atype- Severity
- error
- Message
{} isn't a type.
- Code
not_binary_operator- Severity
- error
- Message
'{}' isn't a binary operator.
Try adding the missing argument.
- Code
not_enough_positional_arguments- Severity
- error
- Message
1 positional argument expected, but 0 found.- Message
{} positional arguments expected, but {} found.- Message
1 positional argument expected by '{}', but 0 found.- Message
{} positional arguments expected by '{}', but {} found.
Try adding an initializer expression, or a generative constructor that initializes it, or mark it 'late'.
- Code
not_initialized_non_nullable_instance_field- Severity
- error
- Message
Non-nullable instance field '{}' must be initialized.
Try adding an initializer expression.
- Code
not_initialized_non_nullable_variable- Severity
- error
- Message
The non-nullable variable '{}' must be initialized.
Try adding type arguments to the type parameter bound.
- Code
not_instantiated_bound- Severity
- error
- Message
Type parameter bound types must be instantiated.
- Code
not_iterable_spread- Severity
- error
- Message
Spread elements in list or set literals must implement 'Iterable'.
- Code
not_map_spread- Severity
- error
- Message
Spread elements in map literals must implement 'Map'.
- Code
not_null_aware_null_spread- Severity
- error
- Message
The Null-typed expression can't be used with a non-null-aware spread.
Try adding a non-null argument.
- Code
null_argument_to_non_null_type- Severity
- warning
- Message
'{}' shouldn't be called with a 'null' argument for the non-nullable type argument '{}'.
Try moving the '?..' operator to be the first cascade operator in the sequence.
- Code
null_aware_cascade_out_of_order- Severity
- error
- Message
The '?..' cascade operator must be first in the cascade sequence.
- Code
null_check_always_fails- Severity
- warning
- Message
This null-check will always throw an exception because the expression will always evaluate to 'null'.
Try using a non-nullable type.
- Code
nullable_type_in_catch_clause- Severity
- warning
- Message
A potentially nullable type can't be used in an 'on' clause because it isn't valid to throw a nullable expression.
Try removing the question mark.
- Code
nullable_type_in_extends_clause- Severity
- error
- Message
Nullable types can't be extended.
Try removing the question mark.
- Code
nullable_type_in_implements_clause- Severity
- error
- Message
Nullable types can't be implemented.
Try removing the question mark.
- Code
nullable_type_in_on_clause- Severity
- error
- Message
Nullable types can't be used as a superclass constraint.
Try removing the question mark.
- Code
nullable_type_in_with_clause- Severity
- error
- Message
Nullable types can't be mixed in.
- Code
object_cannot_extend_another_class- Severity
- error
- Message
The class 'Object' can't extend any other class.
Try replacing the colon with an equal sign.
- Code
obsolete_colon_for_default_value- Severity
- error
- Message
Using a colon as the separator before a default value is no longer supported.
Try removing all except one occurrence of the type name.
- Code
on_repeated- Severity
- error
- Message
The type '{}' can be included in the superclass constraints only once.
Try removing the optional parameters.
- Code
optional_parameter_in_operator- Severity
- error
- Message
Optional parameters aren't allowed when defining an operator.
Try moving the '…' clause before the '…' clause.
- Code
out_of_order_clauses- Severity
- error
- Message
The '{}' clause must come before the '{}' clause.
Try updating this class to match the superclass, or removing the override annotation.
- Code
override_on_non_overriding_member- Severity
- warning
- Message
The field doesn't override an inherited getter or setter.- Message
The getter doesn't override an inherited getter.- Message
The method doesn't override an inherited method.- Message
The setter doesn't override an inherited setter.
Try removing extra 'Packed' annotations.
- Code
packed_annotation- Severity
- error
- Message
Structs must have at most one 'Packed' annotation.
Try changing the 'Packed' annotation alignment to 1, 2, 4, 8, or 16.
- Code
packed_annotation_alignment- Severity
- error
- Message
Only packing to 1, 2, 4, 8, and 16 bytes is supported.
Try including a different part, or changing the name of the library in the part's part-of directive.
- Code
part_of_different_library- Severity
- error
- Message
Expected this library to be part of '{}', not '{}'.
Try using 'part of' with a URI instead.
- Code
part_of_name- Severity
- error
- Message
The 'part of' directive can't use a name with the enhanced-parts feature.
Try adding a part-of directive to '…'.
- Code
part_of_non_part- Severity
- error
- Message
The included part '{}' must have a part-of directive.
Try changing the part-of directive to a URI, or try including a different part.
- Code
part_of_unnamed_library- Severity
- error
- Message
The library is unnamed. A URI is expected, not a library name '{}', in the part-of directive.
Try creating the referenced path or using a path that exists.
- Code
path_does_not_exist- Severity
- warning
- Message
The path '{}' doesn't exist.
Try converting the value to a POSIX-style path.
- Code
path_not_posix- Severity
- warning
- Message
The path '{}' isn't a POSIX-style path.
Try creating a pubspec in the referenced directory or using a path that has a pubspec.
- Code
path_pubspec_does_not_exist- Severity
- warning
- Message
The directory '{}' doesn't contain a pubspec.
Try using a preexisting variable or changing the assignment to a pattern variable declaration.
- Code
pattern_assignment_declares_variable- Severity
- error
- Message
Variable '{}' can't be declared in a pattern assignment.
Try assigning to a local variable.
- Code
pattern_assignment_not_local_variable- Severity
- error
- Message
Only local variables can be assigned in pattern assignments.
Try removing the keyword 'deferred' from the import.
- Code
pattern_constant_from_deferred_library- Severity
- error
- Message
Constant values from a deferred library can't be used in patterns.
Try using a different pattern.
- Code
pattern_never_matches_value_type- Severity
- warning
- Message
The matched value type '{}' can never match the required type '{}'.
Try changing the required type of the pattern, or the matched value type.
- Code
pattern_type_mismatch_in_irrefutable_context- Severity
- error
- Message
The matched value of type '{}' isn't assignable to the required type '{}'.
Try assigning to a different variable.
- Code
pattern_variable_assignment_inside_guard- Severity
- error
- Message
Pattern variables can't be assigned inside the guard of the enclosing guarded pattern.
Try declaring ordinary variables and assigning from within a function or method.
- Code
pattern_variable_declaration_outside_function_or_method- Severity
- error
- Message
A pattern variable declaration may not appear outside a function or method.
Try adding `<uses-feature android:name="…" android:required="false">`.
- Code
permission_implies_unsupported_hardware- Severity
- warning
- Message
Permission makes app incompatible for Chrome OS, consider adding optional {} feature tag,
Try removing the value, while keeping the key.
- Code
platform_value_disallowed- Severity
- warning
- Message
Keys in the `platforms` field can't have values.
Try moving all of the positional arguments before the named arguments.
- Code
positional_after_named_argument- Severity
- error
- Message
Positional arguments must occur before named arguments.
Try specifying the field name.
- Code
positional_field_in_object_pattern- Severity
- error
- Message
Object patterns can only use named fields.
Try surrounding the positional parameters in square brackets.
- Code
positional_parameter_outside_group- Severity
- error
- Message
Positional parameters must be enclosed in square brackets ('[' and ']').
Try making all the positional parameters passed to the super constructor be either all super parameters or all normal parameters.
- Code
positional_super_formal_parameter_with_positional_argument- Severity
- error
- Message
Positional super parameters can't be used when the super constructor invocation has a positional argument.
Try moving the prefix before the combinators.
- Code
prefix_after_combinator- Severity
- error
- Message
The prefix ('as' clause) should come before any show/hide combinators.
Try renaming either the top-level element or the prefix.
- Code
prefix_collides_with_top_level_member- Severity
- error
- Message
The name '{}' is already used as an import prefix and can't be used to name a top-level element.
Try correcting the name to refer to something other than a prefix, or renaming the prefix.
- Code
prefix_identifier_not_followed_by_dot- Severity
- error
- Message
The name '{}' refers to an import prefix, so it must be followed by '.'.
Try renaming either the prefix or the local declaration.
- Code
prefix_shadowed_by_local_declaration- Severity
- error
- Message
The prefix '{}' can't be used here because it's shadowed by a local declaration.
Try using a block body.
- Code
primary_constructor_body_with_expression_body- Severity
- error
- Message
A primary constructor body can't use '=>'.
Try removing the modifier.
- Code
primary_constructor_body_with_modifier- Severity
- error
- Message
A primary constructor body can't have the modifier '{}'.
Try adding the primary constructor declaration.
- Code
primary_constructor_body_without_declaration- Severity
- error
- Message
A primary constructor body requires a primary constructor declaration.
Try removing the redirect.
- Code
primary_constructor_cannot_redirect- Severity
- error
- Message
A primary constructor can't be a redirecting constructor.
Try removing '…' from the 'with' clause.
- Code
private_collision_in_mixin_application- Severity
- error
- Message
The private name '{}', defined by '{}', conflicts with the same name defined by '{}'.
- Code
private_named_non_field_parameter- Severity
- error
- Message
Named parameters that don't refer to instance variables can't start with underscore.
Try renaming one of the parameters.
- Code
private_named_parameter_duplicate_public_name- Severity
- error
- Message
The corresponding public name '{}' is already the name of another parameter.
- Code
private_named_parameter_without_public_name- Severity
- error
- Message
A private named parameter must be a public identifier after removing the leading underscore.
- Code
private_optional_parameter- Severity
- error
- Message
Named parameters can't start with an underscore.
Ensure that it is assigned on necessary execution paths.
- Code
read_potentially_unassigned_final- Severity
- error
- Message
The final variable '{}' can't be read because it's potentially unassigned at this point.
Try checking for throw expressions or type errors in the receiver.
- Code
receiver_of_type_never- Severity
- warning
- Message
The receiver is of type 'Never', and will never complete with a value.
Try adding a trailing comma.
- Code
record_literal_one_positional_no_trailing_comma- Severity
- error
- Message
A record literal with exactly one positional field requires a trailing comma.
Try adding a trailing comma.
- Code
record_type_one_positional_no_trailing_comma- Severity
- error
- Message
A record type with exactly one positional field requires a trailing comma.
- Code
recursive_compile_time_constant- Severity
- error
- Message
The compile-time constant expression depends on itself.
- Code
recursive_constant_constructor- Severity
- error
- Message
The constant constructor depends on itself.
Try changing one of the constructors in the loop to not redirect.
- Code
recursive_constructor_redirect- Severity
- error
- Message
Constructors can't redirect to themselves either directly or indirectly.
Try changing the chain of 'include's to break the circularity.
- Code
recursive_include_file- Severity
- warning
- Message
The URI '{}' included in '{}' includes '{}', creating a circular reference.
- Code
recursive_interface_inheritance- Severity
- error
- Message
'{}' can't be a superinterface of itself: {}.- Message
'{}' can't extend itself.- Message
'{}' can't implement itself.- Message
'{}' can't use itself as a superclass constraint.- Message
'{}' can't use itself as a mixin.
Try updating this member to match a declaration in a superinterface, or removing the redeclare annotation.
- Code
redeclare_on_non_redeclaring_member- Severity
- warning
- Message
The {} doesn't redeclare a {} declared in a superinterface.
Try redirecting to a different constructor, or defining the constructor named '…'.
- Code
redirect_generative_to_missing_constructor- Severity
- error
- Message
The constructor '{}' couldn't be found in '{}'.
Try redirecting to a different constructor.
- Code
redirect_generative_to_non_generative_constructor- Severity
- error
- Message
Generative constructors can't redirect to a factory constructor.
Try redirecting to a constructor of a different class.
- Code
redirect_to_abstract_class_constructor- Severity
- error
- Message
The redirecting constructor '{}' can't redirect to a constructor of the abstract class '{}'.
Try redirecting to a different constructor.
- Code
redirect_to_invalid_function_type- Severity
- error
- Message
The redirected constructor '{}' has incompatible parameters with '{}'.
Try redirecting to a different constructor.
- Code
redirect_to_invalid_return_type- Severity
- error
- Message
The return type '{}' of the redirected constructor isn't a subtype of '{}'.
Try redirecting to a different constructor, or define the constructor named '…'.
- Code
redirect_to_missing_constructor- Severity
- error
- Message
The constructor '{}' couldn't be found in '{}'.
Try redirecting to a different constructor.
- Code
redirect_to_non_class- Severity
- error
- Message
The name '{}' isn't a type and can't be used in a redirected constructor.
Try redirecting to a different constructor.
- Code
redirect_to_non_const_constructor- Severity
- error
- Message
A constant redirecting constructor can't redirect to a non-constant constructor.
Try replacing it with a class.
- Code
redirect_to_type_alias_expands_to_type_parameter- Severity
- error
- Message
A redirecting constructor can't redirect to a type alias that expands to a type parameter.
Try removing the body, or not making this a redirecting constructor.
- Code
redirecting_constructor_with_body- Severity
- error
- Message
Redirecting constructors can't have a body.
Try making this a factory constructor, or remove the redirection.
- Code
redirection_in_non_factory_constructor- Severity
- error
- Message
Only factory constructor can specify '=' redirection.
Try moving the declaration to before the first use, or renaming the local variable so that it doesn't hide a name from an enclosing scope.
- Code
referenced_before_declaration- Severity
- error
- Message
Local variable '{}' can't be referenced before it is declared.
Try using an if-case, a 'switch' statement, or a 'switch' expression instead.
- Code
refutable_pattern_in_irrefutable_context- Severity
- error
- Message
Refutable patterns can't be used in an irrefutable context.
- Code
relational_pattern_operand_type_not_assignable- Severity
- error
- Message
The constant expression type '{}' is not assignable to the parameter type '{}' of the '{}' operator.
Try updating the operator declaration to return 'bool'.
- Code
relational_pattern_operator_return_type_not_assignable_to_bool- Severity
- error
- Message
The return type of operators used in relational patterns must be assignable to 'bool'.
Try removing the reference to '…'.
- Code
removed_lint- Severity
- warning
- Message
'{}' was removed in Dart '{}'