Try moving the directive before any declarations.
- Code
directive_after_declaration- Severity
- error
- Message
Directives must appear before any declarations.
Try removing the type arguments, or instantiating the type(s) of a generic type, generic function, generic instance method, or generic constructor.
- Code
disallowed_type_instantiation_expression- Severity
- error
- Message
Only a generic type, generic function, generic instance method, or generic constructor can have type arguments.
Try formatting '…' as ….
- Code
doc_directive_argument_wrong_format- Severity
- warning
- Message
The '{}' argument must be formatted as {}.
Try removing the unexpected argument.
- Code
doc_directive_has_unexpected_named_argument- Severity
- warning
- Message
The '{}' directive has an unexpected named argument, '{}'.
Try adding a '…' argument before the closing '}'.
- Code
doc_directive_missing_argument- Severity
- warning
- Message
The '{}' directive is missing a '{}' argument.- Message
The '{}' directive is missing a '{}', a '{}', and a '{}' argument.- Message
The '{}' directive is missing a '{}' and a '{}' argument.
Try closing the directive with a curly brace.
- Code
doc_directive_missing_closing_brace- Severity
- warning
- Message
Doc directive is missing a closing curly brace ('}').
Try closing the directive with the appropriate closing tag, '…'.
- Code
doc_directive_missing_closing_tag- Severity
- warning
- Message
Doc directive is missing a closing tag.
Try opening the directive with the appropriate opening tag, '…'.
- Code
doc_directive_missing_opening_tag- Severity
- warning
- Message
Doc directive is missing an opening tag.
Try using one of the supported doc directives.
- Code
doc_directive_unknown- Severity
- warning
- Message
Doc directive '{}' is unknown.
Try removing the 'deferred' keyword.
- Code
doc_import_cannot_be_deferred- Severity
- warning
- Message
Doc imports can't be deferred.
Try removing the configurations.
- Code
doc_import_cannot_have_configurations- Severity
- warning
- Message
Doc imports can't have configurations.
Try moving the doc import to the library file.
- Code
doc_import_in_part_file- Severity
- warning
- Message
Doc imports in part files require the 'enhanced-parts' language feature.
- Code
dot_shorthand_missing_context- Severity
- error
- Message
A dot shorthand can't be used where there is no context type.
Try renaming one of the constructors.
- Code
duplicate_constructor- Severity
- error
- Message
The constructor with name '{}' is already defined.- Message
The unnamed constructor is already defined.
Try removing all but one 'deferred' keyword.
- Code
duplicate_deferred- Severity
- error
- Message
An import directive can only have one 'deferred' keyword.
Try renaming one of the declarations.
- Code
duplicate_definition- Severity
- error
- Message
The name '{}' is already defined.
Try removing all but one export of the library.
- Code
duplicate_export- Severity
- warning
- Message
Duplicate export.- Message
Duplicate of export in '{}'.
Try removing one of the parameters, or using different fields.
- Code
duplicate_field_formal_parameter- Severity
- error
- Message
The field '{}' can't be initialized by multiple parameters in the same constructor.
Try renaming the field.
- Code
duplicate_field_name- Severity
- error
- Message
The field name '{}' is already used in this record.
Try removing the repeated name from the list of hidden members.
- Code
duplicate_hidden_name- Severity
- warning
- Message
Duplicate hidden name.
Try removing the name from the list, or removing the whole comment if this is the only name in the list.
- Code
duplicate_ignore- Severity
- warning
- Message
The diagnostic '{}' doesn't need to be ignored here because it's already being ignored.
Try removing all but one import of the library.
- Code
duplicate_import- Severity
- warning
- Message
Duplicate import.- Message
Duplicate of import in '{}'.
Try choosing a different name for this label.
- Code
duplicate_label_in_switch_statement- Severity
- error
- Message
The label '{}' was already used in this switch statement.
Try removing one of the named arguments, or correcting one of the names to reference a different named parameter.
- Code
duplicate_named_argument- Severity
- error
- Message
The argument for the named parameter '{}' was already specified.
Try removing all except one of the duplicated part directives.
- Code
duplicate_part- Severity
- error
- Message
The library already contains a part with the URI '{}'.
Try renaming the variable.
- Code
duplicate_pattern_assignment_variable- Severity
- error
- Message
The variable '{}' is already assigned in this pattern.
Try removing the duplicate field.
- Code
duplicate_pattern_field- Severity
- error
- Message
The field '{}' is already matched in this pattern.
Try removing all but one prefix.
- Code
duplicate_prefix- Severity
- error
- Message
An import directive can only have one prefix ('as' clause).
Try removing the duplicate rest element.
- Code
duplicate_rest_element_in_pattern- Severity
- error
- Message
At most one rest element is allowed in a list or map pattern.
Try removing all but one occurrence of the rule.
- Code
duplicate_rule- Severity
- warning
- Message
The rule '{}' is already enabled and doesn't need to be enabled again.
Try removing the repeated name from the list of shown members.
- Code
duplicate_shown_name- Severity
- warning
- Message
Duplicate shown name.
Try renaming the variable.
- Code
duplicate_variable_pattern- Severity
- error
- Message
The variable '{}' is already defined in this pattern.
Try removing all but one occurrence of the modifier.
- Code
duplicated_modifier- Severity
- error
- Message
The modifier '{}' was already specified.
Try declaring a constant.
- Code
empty_enum_body- Severity
- error
- Message
An enum must declare at least one constant name.
Try replacing it with an object pattern 'Map()'.
- Code
empty_map_pattern- Severity
- error
- Message
A map pattern must have at least one entry.
Try removing the trailing comma.
- Code
empty_record_literal_with_comma- Severity
- error
- Message
A record literal without fields can't have a trailing comma.
Try adding a named field to the list.
- Code
empty_record_type_named_fields_list- Severity
- error
- Message
The list of named fields in a record type can't be empty.
Try removing the trailing comma.
- Code
empty_record_type_with_comma- Severity
- error
- Message
A record type without fields can't have a trailing comma.
Try adding a field to '…' or use a different superclass.
- Code
empty_struct- Severity
- error
- Message
The class '{}' can't be empty because it's a subclass of '{}'.
- Code
encoding- Severity
- error
- Message
Unable to decode bytes as UTF-8.
Try using a generative constructor.
- Code
enum_constant_invokes_factory_constructor- Severity
- error
- Message
An enum value can't invoke a factory constructor.
Try renaming the constant.
- Code
enum_constant_same_name_as_enclosing- Severity
- error
- Message
The name of the enum value can't be the same as the enum's name.
Try moving the enum to the top-level.
- Code
enum_in_class- Severity
- error
- Message
Enums can't be declared inside classes.
Try using different bounds for type parameters.
- Code
enum_instantiated_to_bounds_is_not_well_bounded- Severity
- error
- Message
The result of instantiating the enum to bounds is not well-bounded.
Try replacing the instance variables with getters.
- Code
enum_mixin_with_instance_variable- Severity
- error
- Message
Mixins applied to enums can't have instance variables.
Try adding a body to '…'.
- Code
enum_with_abstract_member- Severity
- error
- Message
'{}' must have a method body because '{}' is an enum.
Try using a different name.
- Code
enum_with_name_values- Severity
- error
- Message
The name 'values' is not a valid name for an enum.
Try declaring an enum constant.
- Code
enum_without_constants- Severity
- error
- Message
The enum must have at least one enum constant.
Change or remove the duplicate element.
- Code
equal_elements_in_const_set- Severity
- error
- Message
Two elements in a constant set literal can't be equal.
Change or remove the duplicate element.
- Code
equal_elements_in_set- Severity
- warning
- Message
Two elements in a set literal shouldn't be equal.
Change or remove the duplicate key.
- Code
equal_keys_in_const_map- Severity
- error
- Message
Two keys in a constant map literal can't be equal.
Change or remove the duplicate key.
- Code
equal_keys_in_map- Severity
- warning
- Message
Two keys in a map literal shouldn't be equal.
Change or remove the duplicate key.
- Code
equal_keys_in_map_pattern- Severity
- error
- Message
Two keys in a map pattern can't be equal.
Try putting parentheses around one of the comparisons.
- Code
equality_cannot_be_equality_operand- Severity
- error
- Message
A comparison expression can't be an operand of another comparison expression.
Remove the leading forward slash.
- Code
exclude_invalid_glob- Severity
- warning
- Message
The exclude glob pattern '{}' shouldn't start with a forward slash.
Try placing this code inside a case clause.
- Code
expected_case_or_default- Severity
- error
- Message
Expected 'case' or 'default'.
Try adding an empty body.
- Code
expected_catch_clause_body- Severity
- error
- Message
A catch clause must have a body, even if it is empty.
Try adding an empty body.
- Code
expected_class_body- Severity
- error
- Message
A class declaration must have a body, even if it is empty.
Try placing this code inside a class member.
- Code
expected_class_member- Severity
- error
- Message
Expected a class member.
- Code
expected_else_or_comma- Severity
- error
- Message
Expected 'else' or comma.
This appears to be incomplete code. Try removing it or completing it.
- Code
expected_executable- Severity
- error
- Message
Expected a method, getter, setter or operator declaration.
Try adding an empty body.
- Code
expected_extension_body- Severity
- error
- Message
An extension declaration must have a body, even if it is empty.
Try adding an empty body.
- Code
expected_extension_type_body- Severity
- error
- Message
An extension type declaration must have a body, even if it is empty.
Try adding an empty body.
- Code
expected_finally_clause_body- Severity
- error
- Message
A finally clause must have a body, even if it is empty.
Try renaming this to be an identifier that isn't a keyword.
- Code
expected_identifier_but_got_keyword- Severity
- error
- Message
'{}' can't be used as an identifier because it's a keyword.
- Code
expected_instead- Severity
- error
- Message
Expected '{}' instead of this.
Try inserting a list or map literal, or remove the type arguments.
- Code
expected_list_or_map_literal- Severity
- error
- Message
Expected a list or map literal.
Try adding an empty body.
- Code
expected_mixin_body- Severity
- error
- Message
A mixin declaration must have a body, even if it is empty.
Try using a class name, possibly with type arguments.
- Code
expected_named_type- Severity
- error
- Message
Expected a class name.- Message
Expected the name of a class or mixin.- Message
Expected a mixin name.
Try adjusting the number of type arguments.
- Code
expected_one_list_pattern_type_arguments- Severity
- error
- Message
List patterns require one type argument or none, but {} found.
Try adjusting the number of type arguments.
- Code
expected_one_list_type_arguments- Severity
- error
- Message
List literals require one type argument or none, but {} found.
Try adjusting the number of type arguments.
- Code
expected_one_set_type_arguments- Severity
- error
- Message
Set literals require one type argument or none, but {} were found.
Try providing the representation field for this extension type.
- Code
expected_representation_field- Severity
- error
- Message
Expected a representation field.
Try providing the representation type for this extension type.
- Code
expected_representation_type- Severity
- error
- Message
Expected a representation type.
- Code
expected_string_literal- Severity
- error
- Message
Expected a string literal.
Try adding an empty body.
- Code
expected_switch_expression_body- Severity
- error
- Message
A switch expression must have a body, even if it is empty.
Try adding an empty body.
- Code
expected_switch_statement_body- Severity
- error
- Message
A switch statement must have a body, even if it is empty.
- Code
expected_token- Severity
- error
- Message
Expected to find '{}'.
Try adding an empty body.
- Code
expected_try_statement_body- Severity
- error
- Message
A try statement must have a body, even if it is empty.
Try adjusting the number of type arguments.
- Code
expected_two_map_pattern_type_arguments- Severity
- error
- Message
Map patterns require two type arguments or none, but {} found.
Try adjusting the number of type arguments.
- Code
expected_two_map_type_arguments- Severity
- error
- Message
Map literals require two type arguments or none, but {} found.
- Code
expected_type_name- Severity
- error
- Message
Expected a type name.
Try updating your pubspec.yaml to set the minimum SDK constraint to … or higher, and running 'pub get'.
- Code
experiment_not_enabled- Severity
- error
- Message
This requires the '{}' language feature to be enabled.
Try passing the '--enable-experiment=…' command line option.
- Code
experiment_not_enabled_off_by_default- Severity
- error
- Message
This requires the experimental '{}' language feature to be enabled.
- Code
experimental_member_use- Severity
- warning
- Message
'{}' is experimental and could be removed or changed at any time.
Try moving the export directives before the part directives.
- Code
export_directive_after_part_directive- Severity
- error
- Message
Export directives must precede part directives.
- Code
export_internal_library- Severity
- error
- Message
The library '{}' is internal and can't be exported.
Try exporting the library that the part is a part of.
- Code
export_of_non_library- Severity
- error
- Message
The exported library '{}' can't have a part-of directive.
Try removing the expression or converting it to be a map entry.
- Code
expression_in_map- Severity
- error
- Message
Expressions can't be used in a map literal.
Try specifying a different superclass, or removing the extends clause.
- Code
extends_non_class- Severity
- error
- Message
Classes can only extend other classes.
Try replacing it with a valid expression.
- Code
extension_as_expression- Severity
- error
- Message
Extension '{}' can't be used as an expression.
Try removing the 'on' clause.
- Code
extension_augmentation_has_on_clause- Severity
- error
- Message
Extension augmentations can't have 'on' clauses.
Try adding the name of the extension to augment.
- Code
extension_augmentation_without_name- Severity
- error
- Message
An extension augmentation must have a name.
Try renaming the member to a name that doesn't conflict.
- Code
extension_conflicting_static_and_instance- Severity
- error
- Message
An extension can't define static member '{}' and an instance member with the same name.
Try providing an implementation for the member.
- Code
extension_declares_abstract_member- Severity
- error
- Message
Extensions can't declare abstract members.
Try removing the constructor declaration.
- Code
extension_declares_constructor- Severity
- error
- Message
Extensions can't declare constructors.
Try replacing the field with a getter.
- Code
extension_declares_instance_field- Severity
- error
- Message
Extensions can't declare instance fields.
Try specifying a different name for the member.
- Code
extension_declares_member_of_object- Severity
- error
- Message
Extensions can't declare members with the same name as a member declared by 'Object'.
Try using just the name of the extension.
- Code
extension_override_access_to_static_member- Severity
- error
- Message
An extension override can't be used to access a static member from an extension.
- Code
extension_override_argument_not_assignable- Severity
- error
- Message
The type of the argument to the extension override '{}' isn't assignable to the extended type '{}'.
Try using '.' instead of '..'.
- Code
extension_override_with_cascade- Severity
- error
- Message
Extension overrides have no value so they can't be used as the receiver of a cascade expression.
Consider adding an access to an instance member.
- Code
extension_override_without_access- Severity
- error
- Message
An extension override can only be used to access instance members.
Try removing the primary constructor or changing the extension to an extension type.
- Code
extension_primary_constructor- Severity
- error
- Message
Extensions can't have primary constructors.
Try removing the representation field.
- Code
extension_type_augmentation_specifies_representation_field- Severity
- error
- Message
An extension type augmentation can't specify a representation field.
Try removing the super formal parameter declaration.
- Code
extension_type_constructor_with_super_formal_parameter- Severity
- error
- Message
Extension type constructors can't declare super formal parameters.
Try removing the super constructor invocation.
- Code
extension_type_constructor_with_super_invocation- Severity
- error
- Message
Extension type constructors can't include super initializers.
Try replacing the field with a getter.
- Code
extension_type_declares_instance_field- Severity
- error
- Message
Extension types can't declare instance fields.
Try specifying a different name for the member.
- Code
extension_type_declares_member_of_object- Severity
- error
- Message
Extension types can't declare members with the same name as a member declared by 'Object'.
Try removing the 'extends' clause or replacing the 'extends' with 'implements'.
- Code
extension_type_extends- Severity
- error
- Message
An extension type declaration can't have an 'extends' clause.
Try specifying a different type, or remove the type from the list.
- Code
extension_type_implements_disallowed_type- Severity
- error
- Message
Extension types can't implement '{}'.
Try removing the superinterface that references this extension type.
- Code
extension_type_implements_itself- Severity
- error
- Message
The extension type can't implement itself.
Try specifying a different type, or remove the type from the list.
- Code
extension_type_implements_not_supertype- Severity
- error
- Message
'{}' is not a supertype of '{}', the representation type.
Try specifying a different type, or remove the type from the list.
- Code
extension_type_implements_representation_not_supertype- Severity
- error
- Message
'{}', the representation type of '{}', is not a supertype of '{}', the representation type of '{}'.
Try redeclaring the corresponding member in this extension type.
- Code
extension_type_inherited_member_conflict- Severity
- error
- Message
The extension type '{}' has more than one distinct member named '{}' from implemented types.
Try specifying a different type.
- Code
extension_type_representation_depends_on_itself- Severity
- error
- Message
The extension type representation can't depend on itself.
Try specifying a different type.
- Code
extension_type_representation_type_bottom- Severity
- error
- Message
The representation type can't be a bottom type.
Try removing the 'with' clause or replacing the 'with' with 'implements'.
- Code
extension_type_with- Severity
- error
- Message
An extension type declaration can't have a 'with' clause.
Try adding a body to '…'.
- Code
extension_type_with_abstract_member- Severity
- error
- Message
'{}' must have a method body because '{}' is an extension type.
Try removing the keyword 'external'.
- Code
external_class- Severity
- error
- Message
Classes can't be declared to be 'external'.
Try removing the field initializers, or removing the keyword 'external'.
- Code
external_constructor_with_field_initializers- Severity
- error
- Message
An external constructor can't initialize fields.
- Code
external_constructor_with_initializer- Severity
- error
- Message
An external constructor can't have any initializers.
Try removing the keyword 'external'.
- Code
external_enum- Severity
- error
- Message
Enums can't be declared to be 'external'.
Try removing the 'external' modifier.
- Code
external_factory_redirection- Severity
- error
- Message
A redirecting factory can't be external.
Try removing the body of the factory, or removing the keyword 'external'.
- Code
external_factory_with_body- Severity
- error
- Message
External factories can't have a body.
Try removing the body of the getter, or removing the keyword 'external'.
- Code
external_getter_with_body- Severity
- error
- Message
External getters can't have a body.
Try removing the 'external' or 'late' keyword.
- Code
external_late_field- Severity
- error
- Message
External fields cannot be late.
- Code
external_method_with_body- Severity
- error
- Message
An external or native method can't have a body.
Try removing the body of the operator, or removing the keyword 'external'.
- Code
external_operator_with_body- Severity
- error
- Message
External operators can't have a body.
Try removing the body of the setter, or removing the keyword 'external'.
- Code
external_setter_with_body- Severity
- error
- Message
External setters can't have a body.
Try removing the keyword 'external'.
- Code
external_typedef- Severity
- error
- Message
Typedefs can't be declared to be 'external'.
Try removing the field initializer or the 'external' keyword from the field declaration.
- Code
external_with_initializer- Severity
- error
- Message
External fields can't have initializers.- Message
External variables can't have initializers.
Try removing the 'new' keyword or changing it to a different name.
- Code
factory_constructor_new_name- Severity
- error
- Message
Factory constructors can't be named 'new'.
Try adding a body or redirection to the introductory declaration, or providing an augmentation with a body or redirection.
- Code
factory_not_complete_after_augmentations- Severity
- error
- Message
The factory constructor '{}' must have a body or redirection after all augmentations are applied.
Try removing the keyword 'factory'.
- Code
factory_top_level_declaration- Severity
- error
- Message
Top-level declarations can't be declared to be 'factory'.
Try removing the 'factory' keyword to make this a generative constructor, or removing the initializers.
- Code
factory_with_initializers- Severity
- error
- Message
A 'factory' constructor can't have initializers.
Try adding a body to the constructor.
- Code
factory_without_body- Severity
- error
- Message
A non-redirecting 'factory' constructor must have a body.
Try removing the extra annotation.
- Code
ffi_native_invalid_duplicate_default_asset- Severity
- error
- Message
There may be at most one @DefaultAsset annotation on a library.
Try removing the extra annotation.
- Code
ffi_native_invalid_multiple_annotations- Severity
- error
- Message
Native functions and fields must have exactly one `@Native` annotation.
Add the `external` keyword to the function.
- Code
ffi_native_must_be_external- Severity
- error
- Message
Native functions must be declared external.
Pass as Handle instead.
- Code
ffi_native_only_classes_extending_nativefieldwrapperclass1_can_be_pointer- Severity
- error
- Message
Only classes extending NativeFieldWrapperClass1 can be passed as Pointer.
Make sure parameters match the function annotated.
- Code
ffi_native_unexpected_number_of_parameters- Severity
- error
- Message
Unexpected number of Native annotation parameters. Expected {} but has {}.
Make sure parameters match the function annotated, including an extra first parameter for the receiver.
- Code
ffi_native_unexpected_number_of_parameters_with_receiver- Severity
- error
- Message
Unexpected number of Native annotation parameters. Expected {} but has {}. Native instance method annotation must have receiver as first argument.
Try removing one of the initializations.
- Code
field_initialized_by_multiple_initializers- Severity
- error
- Message
The field '{}' can't be initialized twice in the same constructor.
Try removing one of the initializations.
- Code
field_initialized_in_declaration_and_initializer_of_primary_constructor- Severity
- error
- Message
Fields can't be initialized in both the primary constructor and at their declaration.
Try removing one of the initializations.
- Code
field_initialized_in_declaration_and_parameter_of_primary_constructor- Severity
- error
- Message
Fields can't be initialized in both the primary constructor parameter list and at their declaration.
Try removing one of the initializations.
- Code
field_initialized_in_initializer_and_declaration- Severity
- error
- Message
Fields can't be initialized in the constructor if they are final and were already initialized at their declaration.
Try removing one of the initializations.
- Code
field_initialized_in_parameter_and_initializer- Severity
- error
- Message
Fields can't be initialized in both the parameter list and the initializers.
Try passing a value into the superclass constructor, or moving the initialization into the constructor body.
- Code
field_initialized_outside_declaring_class- Severity
- error
- Message
A field can only be initialized in its declaring class
Try using a normal parameter.
- Code
field_initializer_factory_constructor- Severity
- error
- Message
Initializing formal parameters can't be used in factory constructors.
- Code
field_initializer_not_assignable- Severity
- error
- Message
The initializer type '{}' can't be assigned to the field type '{}'.- Message
The initializer type '{}' can't be assigned to the field type '{}' in a const constructor.
Try removing 'this.'.
- Code
field_initializer_outside_constructor- Severity
- error
- Message
Field formal parameters can only be used in a constructor.
Try initializing the field in the constructor being redirected to.
- Code
field_initializer_redirecting_constructor- Severity
- error
- Message
The redirecting constructor can't have a field initializer.
Try changing or removing the parameter's type, or changing the field's type.
- Code
field_initializing_formal_not_assignable- Severity
- error
- Message
The parameter type '{}' is incompatible with the field type '{}'.
Try adding the 'external' modifier.
- Code
field_must_be_external_in_struct- Severity
- error
- Message
Fields of 'Struct' and 'Union' subclasses must be marked external.
Try removing either the 'final' or 'covariant' keyword.
- Code
final_and_covariant- Severity
- error
- Message
Members can't be declared to be both 'final' and 'covariant'.
Try removing either the 'final' or 'covariant' keyword, or removing the initializer.
- Code
final_and_covariant_late_with_initializer- Severity
- error
- Message
Members marked 'late' with an initializer can't be declared to be both 'final' and 'covariant'.
Try removing the keyword 'var'.
- Code
final_and_var- Severity
- error
- Message
Members can't be declared to be both 'final' and 'var'.
Try removing the keyword 'final'.
- Code
final_constructor- Severity
- error
- Message
A constructor can't be declared to be 'final'.
Try removing the keyword 'final'.
- Code
final_enum- Severity
- error
- Message
Enums can't be declared to be 'final'.
Try removing one of the initializations.
- Code
final_initialized_in_declaration_and_constructor- Severity
- error
- Message
'{}' is final and was given a value when it was declared, so it can't be set to a new value.
Try removing the keyword 'final'.
- Code
final_method- Severity
- error
- Message
Getters, setters and methods can't be declared to be 'final'.
Try removing the 'final' keyword.
- Code
final_mixin- Severity
- error
- Message
A mixin can't be declared 'final'.
Try removing the 'final' keyword.
- Code
final_mixin_class- Severity
- error
- Message
A mixin class can't be declared 'final'.
Try initializing the variable.
- Code
final_not_initialized- Severity
- error
- Message
The final variable '{}' must be initialized.
Try adding an initializer for the field.
- Code
final_not_initialized_constructor- Severity
- error
- Message
All final variables must be initialized, but '{}' isn't.- Message
All final variables must be initialized, but '{}' and '{}' aren't.- Message
All final variables must be initialized, but '{}', '{}', and {} others aren't.
Try converting the value to be a map.
- Code
flutter_field_not_map- Severity
- warning
- Message
The value of the 'flutter' field is expected to be a map.
- Code
for_in_of_invalid_element_type- Severity
- error
- Message
The type '{}' used in the 'for' loop must implement '{}' with a type argument that can be assigned to '{}'.
- Code
for_in_of_invalid_type- Severity
- error
- Message
The type '{}' used in the 'for' loop must implement '{}'.
Try removing the 'const' modifier from the variable, or use a different variable.
- Code
for_in_with_const_variable- Severity
- error
- Message
A for-in loop variable can't be a 'const'.
Try adding a body to the introductory declaration, or providing an augmentation with a body.
- Code
function_not_complete_after_augmentations- Severity
- error
- Message
The function or member '{}' must have a body after all augmentations are applied.
Try replacing the keyword with a return type.
- Code
function_typed_parameter_var- Severity
- error
- Message
Function-typed parameters can't specify 'const', 'final' or 'var' in place of a return type.
Try making the free variable in the function type part of the larger declaration signature.
- Code
generic_function_type_cannot_be_bound- Severity
- error
- Message
Generic function types can't be used as type parameter bounds.
Try removing type parameters from the generic function type, or using 'dynamic' as the type argument here.
- Code
generic_function_type_cannot_be_type_argument- Severity
- error
- Message
A generic function type can't be a type argument.
Specify the type of the receiver, or remove the type arguments from the method tear-off.
- Code
generic_method_type_instantiation_on_dynamic- Severity
- error
- Message
A method tear-off on a receiver whose type is 'dynamic' can't have type arguments.
Try removing the type parameters from '…'.
- Code
generic_struct_subclass- Severity
- error
- Message
The class '{}' can't extend 'Struct' or 'Union' because '{}' is generic.
Try removing 'get'.
- Code
getter_constructor- Severity
- error
- Message
Constructors can't be a getter.
Try moving the getter outside the method or function, or converting the getter to a function.
- Code
getter_in_function- Severity
- error
- Message
Getters can't be defined within methods or functions.
Try changing the types so that they are compatible.
- Code
getter_not_subtype_setter_types- Severity
- error
- Message
The return type of getter '{}' is '{}' which isn't a subtype of the type '{}' of its setter '{}'.
Try removing the parameter list, or removing the keyword 'get' to define a method rather than a getter.
- Code
getter_with_parameters- Severity
- error
- Message
Getters must be declared without a parameter list.
Try making the deferred import non-deferred.
- Code
if_element_condition_from_deferred_library- Severity
- error
- Message
Constant values from a deferred library can't be used as values in an if condition inside a const collection literal.
- Code
illegal_assignment_to_non_assignable- Severity
- error
- Message
Illegal assignment to non-assignable expression.
Try fixing the return type of the function, or removing the modifier 'async*' from the function body.
- Code
illegal_async_generator_return_type- Severity
- error
- Message
Functions marked 'async*' must have a return type that is a supertype of 'Stream<T>' for some type 'T'.
Try fixing the return type of the function, or removing the modifier 'async' from the function body.
- Code
illegal_async_return_type- Severity
- error
- Message
Functions marked 'async' must have a return type which is a supertype of 'Future'.
- Code
illegal_character- Severity
- error
- Message
Illegal character '{}'.
Try using a different name.
- Code
illegal_concrete_enum_member- Severity
- error
- Message
A concrete instance member named '{}' can't be declared in a class that implements 'Enum'.- Message
A concrete instance member named '{}' can't be inherited from '{}' in a class that implements 'Enum'.
Try using a different name.
- Code
illegal_enum_values- Severity
- error
- Message
An instance member named 'values' can't be declared in a class that implements 'Enum'.- Message
An instance member named 'values' can't be inherited from '{}' in a class that implements 'Enum'.
Try removing the language version override and migrating the code.
- Code
illegal_language_version_override- Severity
- error
- Message
The language version must be {}.
Choose a different name.
- Code
illegal_pattern_assignment_variable_name- Severity
- error
- Message
A variable assigned by a pattern assignment can't be named '{}'.
Match the identifier using '==.
- Code
illegal_pattern_identifier_name- Severity
- error
- Message
A pattern can't refer to an identifier named '{}'.
Choose a different name.
- Code
illegal_pattern_variable_name- Severity
- error
- Message
The variable declared by a variable pattern can't be named '{}'.
Try fixing the return type of the function, or removing the modifier 'sync*' from the function body.
- Code
illegal_sync_generator_return_type- Severity
- error
- Message
Functions marked 'sync*' must have a return type that is a supertype of 'Iterable<T>' for some type 'T'.
Try moving the extends clause before the implements clause.
- Code
implements_before_extends- Severity
- error
- Message
The extends clause must be before the implements clause.