Try moving the on clause before the implements clause.
- Code
implements_before_on- Severity
- error
- Message
The on clause must be before the implements clause.
Try moving the with clause before the implements clause.
- Code
implements_before_with- Severity
- error
- Message
The with clause must be before the implements clause.
Try specifying a class or mixin, or remove the name from the list.
- Code
implements_non_class- Severity
- error
- Message
Classes and mixins can only implement other classes and mixins.
Try removing all but one occurrence of the class name.
- Code
implements_repeated- Severity
- error
- Message
'{}' can only be implemented once.
Try removing one of the occurrences.
- Code
implements_super_class- Severity
- error
- Message
'{}' can't be used in both the 'extends' and 'implements' clauses.- Message
'{}' can't be used in both the 'extends' and 'with' clauses.
Try removing the type from the 'implements' clause.
- Code
implements_super_class_constraint- Severity
- error
- Message
'{}' can't be used in both the 'on' and 'implements' clauses.
Try adding an explicit super parameter with the required arguments.
- Code
implicit_super_initializer_missing_arguments- Severity
- error
- Message
The implicitly invoked unnamed constructor from '{}' has required parameters.
Try replacing the reference to the instance member with a different expression.
- Code
implicit_this_reference_in_initializer- Severity
- error
- Message
The instance member '{}' can't be accessed in an initializer.
Try changing the import to not be deferred, or rename the function in the imported library.
- Code
import_deferred_library_with_load_function- Severity
- hint
- Message
The imported library defines a top-level function named 'loadLibrary' that is hidden by deferring this library.
Try moving the import directives before the part directives.
- Code
import_directive_after_part_directive- Severity
- error
- Message
Import directives must precede part directives.
- Code
import_internal_library- Severity
- error
- Message
The library '{}' is internal and can't be imported.
Try importing the library that the part is a part of.
- Code
import_of_non_library- Severity
- error
- Message
The imported library '{}' can't have a part-of directive.
- Code
include_file_not_found- Severity
- warning
- Message
The URI '{}' included in '{}' can't be found when analyzing '{}'.
- Code
included_file_warning- Severity
- warning
- Message
Warning in the included options file {}({}..{}): {}
Try removing all but one of the incompatible rules.
- Code
incompatible_lint- Severity
- warning
- Message
The rule '{}' is incompatible with '{}'.- Message
The rule '{}' is incompatible with {}.- Message
The rule '{}' is incompatible with {}, which is included from {} file{}.
Ensure that all specifications of the same plugin use an identical source.
- Code
incompatible_plugin_source- Severity
- warning
- Message
The plugin '{}' is specified with a different source in '{}'.
Try adding an explicit override that is consistent with all of the inherited members.
- Code
inconsistent_inheritance- Severity
- error
- Message
Superinterfaces don't have a valid override for '{}': {}.
Try adjusting the supertypes of this class to remove the inconsistency.
- Code
inconsistent_inheritance_getter_and_method- Severity
- error
- Message
'{}' is inherited as a getter (from '{}') and also a method (from '{}').
- Code
inconsistent_language_version_override- Severity
- error
- Message
Parts must have exactly the same language version override as the library.
Try declaring the variable pattern with the same type and finality in both branches.
- Code
inconsistent_pattern_variable_logical_or- Severity
- error
- Message
The variable '{}' has a different type and/or finality in this branch of the logical-or pattern.
Try adding an initializer or providing an augmentation with a getter body.
- Code
induced_getter_not_complete_after_augmentations- Severity
- error
- Message
The getter induced by '{}' must have a body after all augmentations are applied.
Try removing 'abstract' and adding an initializer.
- Code
induced_getter_without_body- Severity
- error
- Message
The getter induced by '{}' must have a body.
Try adding an initializer or providing an augmentation with a setter body.
- Code
induced_setter_not_complete_after_augmentations- Severity
- error
- Message
The setter induced by '{}' must have a body after all augmentations are applied.
Try removing 'abstract' and adding an initializer.
- Code
induced_setter_without_body- Severity
- error
- Message
The setter induced by '{}' must have a body.
Use explicit type argument(s) for '…'.
- Code
inference_failure_on_collection_literal- Severity
- warning
- Message
The type argument(s) of '{}' can't be inferred.
Use explicit type argument(s) for '…'.
- Code
inference_failure_on_function_invocation- Severity
- warning
- Message
The type argument(s) of the function '{}' can't be inferred.
Declare the return type of '…'.
- Code
inference_failure_on_function_return_type- Severity
- warning
- Message
The return type of '{}' can't be inferred.
Use explicit type argument(s) for '…'.
- Code
inference_failure_on_generic_invocation- Severity
- warning
- Message
The type argument(s) of the generic function type '{}' can't be inferred.
Use explicit type argument(s) for '…'.
- Code
inference_failure_on_instance_creation- Severity
- warning
- Message
The type argument(s) of the constructor '{}' can't be inferred.
Try specifying the type of the variable.
- Code
inference_failure_on_uninitialized_variable- Severity
- warning
- Message
The type of '{}' can't be inferred without either a type or initializer.
Try specifying the type of the parameter.
- Code
inference_failure_on_untyped_parameter- Severity
- warning
- Message
The type of '{}' can't be inferred; a type must be explicitly provided.
Try removing the initializer, or using a different kind of loop.
- Code
initialized_variable_in_for_each- Severity
- error
- Message
The loop variable in a for-each loop can't be initialized.
Try correcting the name to match an existing field, or defining a field named '…'.
- Code
initializer_for_non_existent_field- Severity
- error
- Message
'{}' isn't a field in the enclosing class.
Try removing the initialization.
- Code
initializer_for_static_field- Severity
- error
- Message
'{}' is a static field in the enclosing class. Fields initialized in a constructor can't be static.
Try removing the `this.` prefix or making the parameter non-declaring.
- Code
initializing_declaring_parameter- Severity
- error
- Message
Declaring parameters can't be initializing.
Try correcting the name to match an existing field, or defining a field named '…'.
- Code
initializing_formal_for_non_existent_field- Severity
- error
- Message
'{}' isn't a field in the enclosing class.
Try using the … '…' to access the ….
- Code
instance_access_to_static_member- Severity
- error
- Message
The static {} '{}' can't be accessed through an instance.
Try removing the reference to the instance member.
- Code
instance_member_access_from_factory- Severity
- error
- Message
Instance members can't be accessed from a factory constructor.
Try removing the reference to the instance member, or removing the keyword 'static' from the method.
- Code
instance_member_access_from_static- Severity
- error
- Message
Instance members can't be accessed from a static method.
Try creating an instance of a concrete subtype.
- Code
instantiate_abstract_class- Severity
- error
- Message
Abstract classes can't be instantiated.
Try using one of the defined constants.
- Code
instantiate_enum- Severity
- error
- Message
Enums can't be instantiated.
Try replacing it with a class.
- Code
instantiate_type_alias_expands_to_type_parameter- Severity
- error
- Message
Type aliases that expand to a type parameter can't be instantiated.
Try using the class 'BigInt', or switch to the closest valid double: '…'.
- Code
integer_literal_imprecise_as_double- Severity
- error
- Message
The integer literal is being used as a double, but can't be represented as a 64-bit double without overflow or loss of precision: '{}'.
Try using the 'BigInt' class if you need an integer larger than 9,223,372,036,854,775,807 or less than -9,223,372,036,854,775,808.
- Code
integer_literal_out_of_range- Severity
- error
- Message
The integer literal {} can't be represented in 64 bits.
Try removing the keyword 'interface'.
- Code
interface_enum- Severity
- error
- Message
Enums can't be declared to be 'interface'.
Try removing the 'interface' keyword.
- Code
interface_mixin- Severity
- error
- Message
A mixin can't be declared 'interface'.
Try removing the 'interface' keyword.
- Code
interface_mixin_class- Severity
- error
- Message
A mixin class can't be declared 'interface'.
- Code
invalid_annotation- Severity
- error
- Message
Annotation must be either a const variable reference or const constructor invocation.
Try moving the constant from the deferred library, or removing 'deferred' from the import.
- Code
invalid_annotation_constant_value_from_deferred_library- Severity
- error
- Message
Constant values from a deferred library can't be used in annotations.
Try removing the annotation, or changing the import to not be deferred.
- Code
invalid_annotation_from_deferred_library- Severity
- error
- Message
Constant values from a deferred library can't be used as annotations.
- Code
invalid_annotation_target- Severity
- warning
- Message
The annotation '{}' can only be used on {}.
Try changing the type of the variable, or casting the right-hand type to '…'.
- Code
invalid_assignment- Severity
- error
- Message
A value of type '{}' can't be assigned to a variable of type '{}'.
Try removing the keyword, or use a for-each statement.
- Code
invalid_await_in_for- Severity
- error
- Message
The keyword 'await' isn't allowed for a normal 'for' statement.
- Code
invalid_await_not_required_annotation- Severity
- warning
- Message
The annotation 'awaitNotRequired' can only be applied to a Future-returning function, or a Future-typed field.
- Code
invalid_code_point- Severity
- error
- Message
The escape sequence '{}' isn't a valid code point.
- Code
invalid_constant- Severity
- error
- Message
Invalid constant value.
Try wrapping the expression in 'const ( ... )' instead.
- Code
invalid_constant_const_prefix- Severity
- error
- Message
The expression can't be prefixed by 'const' to form a constant pattern.
Try wrapping the expression in 'const ( ... )'.
- Code
invalid_constant_pattern_binary- Severity
- error
- Message
The binary operator {} is not supported as a constant pattern.
Try removing one of the 'const' keywords.
- Code
invalid_constant_pattern_duplicate_const- Severity
- error
- Message
Duplicate 'const' keyword in constant expression.
- Code
invalid_constant_pattern_empty_record_literal- Severity
- error
- Message
The empty record literal is not supported as a constant pattern.
Try wrapping the expression in 'const ( ... )'.
- Code
invalid_constant_pattern_generic- Severity
- error
- Message
This expression is not supported as a constant pattern.
Try wrapping the expression in 'const ( ... )'.
- Code
invalid_constant_pattern_negation- Severity
- error
- Message
Only negation of a numeric literal is supported as a constant pattern.
Try wrapping the expression in 'const ( ... )'.
- Code
invalid_constant_pattern_unary- Severity
- error
- Message
The unary operator {} is not supported as a constant pattern.
- Code
invalid_constructor_name- Severity
- error
- Message
The name of a constructor must match the name of the enclosing class.
Try removing 'covariant'.
- Code
invalid_covariant_modifier_in_primary_constructor- Severity
- error
- Message
The 'covariant' modifier can only be used on non-final declaring parameters.
Try adding a 'publish_to: none' entry to mark the package as not for publishing or remove the … dependency.
- Code
invalid_dependency- Severity
- warning
- Message
Publishable packages can't have '{}' dependencies.
Try removing the '@Deprecated.extend' annotation.
- Code
invalid_deprecated_extend_annotation- Severity
- warning
- Message
The annotation '@Deprecated.extend' can only be applied to extendable classes.
Try removing the '@Deprecated.implement' annotation.
- Code
invalid_deprecated_implement_annotation- Severity
- warning
- Message
The annotation '@Deprecated.implement' can only be applied to implementable classes.
Try removing the '@Deprecated.instantiate' annotation.
- Code
invalid_deprecated_instantiate_annotation- Severity
- warning
- Message
The annotation '@Deprecated.instantiate' can only be applied to classes.
Try removing the '@Deprecated.mixin' annotation.
- Code
invalid_deprecated_mixin_annotation- Severity
- warning
- Message
The annotation '@Deprecated.mixin' can only be applied to classes.
Try removing the '@Deprecated.optional' annotation.
- Code
invalid_deprecated_optional_annotation- Severity
- warning
- Message
The annotation '@Deprecated.optional' can only be applied to optional parameters.
Try removing the '@Deprecated.subclass' annotation.
- Code
invalid_deprecated_subclass_annotation- Severity
- warning
- Message
The annotation '@Deprecated.subclass' can only be applied to subclassable classes and mixins.
Try removing the exceptional return value.
- Code
invalid_exception_value- Severity
- error
- Message
The method {} can't have an exceptional return value (the second argument) when the return type of the function is either 'void', 'Handle' or 'Pointer'.
Try using a hide clause to hide '…'.
- Code
invalid_export_of_internal_element- Severity
- warning
- Message
The member '{}' can't be exported as a part of a package's public API.
Try using a hide clause to hide '…'.
- Code
invalid_export_of_internal_element_indirectly- Severity
- warning
- Message
The member '{}' can't be exported as a part of a package's public API, but is indirectly exported as part of the signature of '{}'.
Try specifying exactly one argument.
- Code
invalid_extension_argument_count- Severity
- error
- Message
Extension overrides must have exactly one argument: the value of 'this' in the extension method.
- Code
invalid_factory_method_decl- Severity
- warning
- Message
Factory method '{}' must have a return type.
- Code
invalid_factory_method_impl- Severity
- warning
- Message
Factory method '{}' doesn't return a newly allocated object.
- Code
invalid_factory_name_not_aclass- Severity
- error
- Message
The name of a factory constructor must be the same as the name of the immediately enclosing class.
Try using a different name for the field.
- Code
invalid_field_name- Severity
- error
- Message
Record field names can't be the same as a member from 'Object'.- Message
Record field names can't be private.- Message
Record field names can't be a dollar sign followed by an integer when the integer is the index of a positional field.
Try using 'int', 'double', 'Array', 'Pointer', or subtype of 'Struct' or 'Union'.
- Code
invalid_field_type_in_struct- Severity
- error
- Message
Fields in struct classes can't have the type '{}'. They can only be declared as 'int', 'double', 'Array', 'Pointer', or subtype of 'Struct' or 'Union'.
Try using a generic function type (returnType 'Function(' parameters ')').
- Code
invalid_generic_function_type- Severity
- error
- Message
Invalid generic function type.
- Code
invalid_hex_escape- Severity
- error
- Message
An escape sequence starting with '\x' must be followed by 2 hexadecimal digits.
- Code
invalid_implementation_override- Severity
- error
- Message
'{}.{}' ('{}') isn't a valid concrete implementation of '{}.{}' ('{}').- Message
The setter '{}.{}' ('{}') isn't a valid concrete implementation of '{}.{}' ('{}').
To initialize a field, use the syntax 'name = value'.
- Code
invalid_initializer- Severity
- error
- Message
Not a valid initializer.
Try using a generic function type (returnType 'Function(' parameters ')').
- Code
invalid_inline_function_type- Severity
- error
- Message
Inline function types can't be used for parameters in a generic function type.
Try combining into a single pattern if possible, or enclose the inner pattern in parentheses.
- Code
invalid_inside_unary_pattern- Severity
- error
- Message
This pattern cannot appear inside a unary pattern (cast pattern, null check pattern, or null assert pattern) without parentheses.
- Code
invalid_internal_annotation- Severity
- warning
- Message
Only public elements in a package's private API can be annotated as being internal.
Try removing the language version override.
- Code
invalid_language_version_override- Severity
- warning
- Message
The language version override can't specify a version greater than the latest known language version: {}.{}.- Message
The Dart language version override number must begin with '@dart'.- Message
The language version override must be specified before any declaration or directive.- Message
The Dart language version override comment must be specified with the word 'dart' in all lower case.- Message
The Dart language version override comment must be specified with a version number, like '2.0', after the '=' character.- Message
The Dart language version override number can't be prefixed with a letter.
- Code
invalid_literal_annotation- Severity
- warning
- Message
Only const constructors can have the `@literal` annotation.
Try removing the interpolation expressions.
- Code
invalid_literal_in_configuration- Severity
- error
- Message
The literal in a configuration can't contain interpolation.
Try removing the modifier.
- Code
invalid_modifier_on_constructor- Severity
- error
- Message
The modifier '{}' can't be applied to the body of a constructor.
Try removing the modifier.
- Code
invalid_modifier_on_setter- Severity
- error
- Message
Setters can't use 'async', 'async*', or 'sync*'.
Try removing '@nonVirtual'.
- Code
invalid_non_virtual_annotation- Severity
- warning
- Message
The annotation '@nonVirtual' can only be applied to a concrete instance member.
Try replacing the operator '…' with '…'.
- Code
invalid_null_aware_operator- Severity
- warning
- Message
The receiver can't be null, so the null-aware operator '{}' is unnecessary.- Message
The receiver can't be 'null' because of short-circuiting, so the null-aware operator '{}' can't be used.- Message
The element can't be null, so the null-aware operator '?' is unnecessary.- Message
The map entry key can't be null, so the null-aware operator '?' is unnecessary.- Message
The map entry value can't be null, so the null-aware operator '?' is unnecessary.
- Code
invalid_operator- Severity
- error
- Message
The string '{}' isn't a user-definable operator.
Try replacing '?.' with '.'.
- Code
invalid_operator_questionmark_period_for_super- Severity
- error
- Message
The operator '?.' cannot be used with 'super' because 'super' cannot be null.
- Code
invalid_option- Severity
- warning
- Message
Invalid option specified for '{}': {}
- Code
invalid_override- Severity
- error
- Message
'{}.{}' ('{}') isn't a valid override of '{}.{}' ('{}').- Message
The setter '{}.{}' ('{}') isn't a valid override of '{}.{}' ('{}').
- Code
invalid_override_of_non_virtual_member- Severity
- warning
- Message
The member '{}' is declared non-virtual in '{}' and can't be overridden in subclasses.
Try declaring the variable pattern with the same type and finality in all cases.
- Code
invalid_pattern_variable_in_shared_case_scope- Severity
- error
- Message
The variable '{}' doesn't have the same type and/or finality in all cases that share this body.- Message
The variable '{}' is not available because there is a label or 'default' case.- Message
The variable '{}' is available in some, but not all cases that share this body.
Try changing the 'platforms' field to a map with platforms as keys.
- Code
invalid_platforms_field- Severity
- warning
- Message
The 'platforms' field must be a map with platforms as keys.
Try using an enum value, or a factory constructor.
- Code
invalid_reference_to_generative_enum_constructor- Severity
- error
- Message
Generative enum constructors can only be used to create an enum constant.- Message
Generative enum constructors can't be torn off.
- Code
invalid_reference_to_this- Severity
- error
- Message
Invalid reference to 'this' expression.
Try removing the '@reopen' annotation.
- Code
invalid_reopen_annotation- Severity
- warning
- Message
The annotation '@reopen' can only be applied to a class that opens capabilities that the supertype intentionally disallows.
- Code
invalid_return_type_for_catch_error- Severity
- warning
- Message
The return type '{}' isn't assignable to '{}', as required by 'Future.catchError'.- Message
A value of type '{}' can't be returned by the 'onError' handler because it must be assignable to '{}'.
- Code
invalid_return_type_for_then- Severity
- warning
- Message
A value of type '{}' can't be returned by the 'onError' handler because it must be assignable to '{}', as required by 'Future.then'.- Message
The return type '{}' isn't assignable to '{}', as required by 'Future.then'.
- Code
invalid_section_format- Severity
- warning
- Message
Invalid format for the '{}' section.
Try converting the body to a block.
- Code
invalid_star_after_async- Severity
- error
- Message
The modifier 'async*' isn't allowed for an expression function body.
Try removing the 'super' modifier, or changing the constructor to be non-redirecting and generative.
- Code
invalid_super_formal_parameter_location- Severity
- error
- Message
Super parameters can only be used in non-redirecting generative constructors.
- Code
invalid_super_in_initializer- Severity
- error
- Message
Can only use 'super' in an initializer for calling the superclass constructor (e.g. 'super()' or 'super.namedConstructor()')
Try converting the body to a block.
- Code
invalid_sync- Severity
- error
- Message
The modifier 'sync' isn't allowed for an expression function body.
- Code
invalid_this_in_initializer- Severity
- error
- Message
Can only use 'this' in an initializer for field initialization (e.g. 'this.x = something') and constructor redirection (e.g. 'this()' or 'this.namedConstructor())
Try replacing the type parameter with a different type.
- Code
invalid_type_argument_in_const_literal- Severity
- error
- Message
Constant list literals can't use a type parameter in a type argument, such as '{}'.- Message
Constant map literals can't use a type parameter in a type argument, such as '{}'.- Message
Constant set literals can't use a type parameter in a type argument, such as '{}'.
Try adding another backslash (\) to escape the '\'.
- Code
invalid_unicode_escape_started- Severity
- error
- Message
The string '\' can't stand alone.
- Code
invalid_unicode_escape_ubracket- Severity
- error
- Message
An escape sequence starting with '\u{' must be followed by 1 to 6 hexadecimal digits followed by a '}'.
- Code
invalid_unicode_escape_uno_bracket- Severity
- error
- Message
An escape sequence starting with '\u' must be followed by 4 hexadecimal digits.
- Code
invalid_unicode_escape_ustarted- Severity
- error
- Message
An escape sequence starting with '\u' must be followed by 4 hexadecimal digits or from 1 to 6 digits between '{' and '}'.
- Code
invalid_uri- Severity
- error
- Message
Invalid URI syntax: '{}'.
Try removing the 'covariant' keyword.
- Code
invalid_use_of_covariant- Severity
- error
- Message
The 'covariant' keyword can only be used for parameters in instance methods or before non-final instance fields.
Try removing '…'.
- Code
invalid_use_of_covariant_in_extension- Severity
- error
- Message
Can't have modifier '{}' in an extension.
Try removing the reference to '…'.
- Code
invalid_use_of_do_not_submit_member- Severity
- warning
- Message
Uses of '{}' should not be submitted to source control.
Try using a different identifier.
- Code
invalid_use_of_identifier_augmented- Severity
- error
- Message
The identifier 'augmented' can only be used to reference the augmented declaration inside an augmentation.
- Code
invalid_use_of_internal_member- Severity
- warning
- Message
The member '{}' can only be used within its package.
Try changing the type of the expression.
- Code
invalid_use_of_null_value- Severity
- error
- Message
An expression whose value is always 'null' can't be dereferenced.
- Code
invalid_use_of_protected_member- Severity
- warning
- Message
The member '{}' can only be used within instance members of subclasses of '{}'.
- Code
invalid_use_of_type_outside_library- Severity
- error
- Message
The class '{}' can't be implemented outside of its library because it's a base class.- Message
The mixin '{}' can't be implemented outside of its library because it's a base mixin.- Message
The class '{}' can't be extended outside of its library because it's a final class.- Message
The class '{}' can't be implemented outside of its library because it's a final class.- Message
The class '{}' can't be used as a mixin superclass constraint outside of its library because it's a final class.- Message
The class '{}' can't be extended outside of its library because it's an interface class.
- Code
invalid_use_of_visible_for_overriding_member- Severity
- warning
- Message
The member '{}' can only be used for overriding.
- Code
invalid_use_of_visible_for_template_member- Severity
- warning
- Message
The member '{}' can only be used within '{}' or a template library.
- Code
invalid_use_of_visible_for_testing_member- Severity
- warning
- Message
The member '{}' can only be used within '{}' or a test.
- Code
invalid_visibility_annotation- Severity
- warning
- Message
The member '{}' is annotated with '{}', but this annotation is only meaningful on declarations of public members.
- Code
invalid_visible_outside_template_annotation- Severity
- warning
- Message
The annotation 'visibleOutsideTemplate' can only be applied to a member of a class, enum, or mixin that is annotated with 'visibleForTemplate'.
- Code
invalid_widget_preview_application- Severity
- warning
- Message
The '@Preview(...)' annotation can only be applied to public, statically accessible constructors and functions.
Rename private symbol '…' to '…'.
- Code
invalid_widget_preview_private_argument- Severity
- warning
- Message
'@Preview(...)' can only accept arguments that consist of literals and public symbols.
- Code
invocation_of_extension_without_call- Severity
- error
- Message
The extension '{}' doesn't define a 'call' method so the override can't be used in an invocation.
Try correcting the name to match an existing function, or define a method or function named '…'.
- Code
invocation_of_non_function- Severity
- error
- Message
'{}' isn't a function.
- Code
invocation_of_non_function_expression- Severity
- error
- Message
The expression doesn't evaluate to a function, so it can't be invoked.
Try removing the '@JS' annotation from the constructor, and putting it on the extension type to rename non-object literal constructors.
- Code
js_interop_extension_constructor_js_annotation_has_no_effect- Severity
- error
- Message
The '@JS' annotation on an extension type constructor has no effect and is disallowed.
- Code
label_in_outer_scope- Severity
- error
- Message
Can't reference label '{}' declared in an outer method.
Try defining the label, or correcting the name to match an existing label.
- Code
label_undefined- Severity
- error
- Message
Can't reference an undefined label '{}'.
Try removing the 'late' modifier, or don't declare 'const' constructors.
- Code
late_final_field_with_const_constructor- Severity
- error
- Message
Can't have a late final field in a class with a generative const constructor.
Try removing the 'final' modifier, or don't reassign the value.
- Code
late_final_local_already_assigned- Severity
- error
- Message
The late final local variable is already assigned.
Try removing the keyword `late`.
- Code
late_pattern_variable_declaration- Severity
- error
- Message
A pattern variable declaration may not use the `late` keyword.
Try changing the return type to primitive or struct.
- Code
leaf_call_must_not_return_handle- Severity
- error
- Message
FFI leaf call can't return a 'Handle'.
Try changing the argument type to primitive or struct.
- Code
leaf_call_must_not_take_handle- Severity
- error
- Message
FFI leaf call can't take arguments of type 'Handle'.
Try moving the library directive before any other directives.
- Code
library_directive_not_first- Severity
- error
- Message
The library directive must appear before all other directives.
- Code
list_element_type_not_assignable- Severity
- error
- Message
The element type '{}' can't be assigned to the list type '{}'.
Try removing '…'.
- Code
literal_with_class- Severity
- error
- Message
A {} literal can't be prefixed by '{}'.
Try removing 'new' and '…'.
- Code
literal_with_class_and_new- Severity
- error
- Message
A {} literal can't be prefixed by 'new {}'.
Try removing 'new'.
- Code
literal_with_new- Severity
- error
- Message
A literal can't be prefixed by 'new'.
Try removing the modifier.
- Code
local_function_declaration_modifier- Severity
- error
- Message
Local function declarations can't specify any modifiers.
Try changing the type of the parameter.
- Code
main_first_positional_parameter_type- Severity
- error
- Message
The type of the first positional parameter of the 'main' function must be a supertype of 'List<String>'.
Try using a different name for the function, or removing the 'required' modifier.
- Code
main_has_required_named_parameters- Severity
- error
- Message
The function 'main' can't have any required named parameters.
Try using a different name for the function, or removing extra parameters.
- Code
main_has_too_many_required_positional_parameters- Severity
- error
- Message
The function 'main' can't have more than two required positional parameters.
Try using a different name for this declaration.
- Code
main_is_not_function- Severity
- error
- Message
The declaration named 'main' must be a function.
Try converting the collection to a map or removing the map entry.
- Code
map_entry_not_in_map- Severity
- error
- Message
Map entries can only be used in a map literal.
- Code
map_key_type_not_assignable- Severity
- error
- Message
The element type '{}' can't be assigned to the map key type '{}'.
- Code
map_value_type_not_assignable- Severity
- error
- Message
The element type '{}' can't be assigned to the map value type '{}'.
Try renaming the member.
- Code
member_with_class_name- Severity
- error
- Message
A class member can't have the same name as the enclosing class.
Try using a different annotation or changing the declared type to match.
- Code
mismatched_annotation_on_struct_field- Severity
- error
- Message
The annotation doesn't match the declared type of the field.
Try adding an annotation.
- Code
missing_annotation_on_struct_field- Severity
- error
- Message
Fields of type '{}' in a subclass of '{}' must have an annotation indicating the native type.
Try adding a selector.
- Code
missing_assignable_selector- Severity
- error
- Message
Missing selector such as '.identifier' or '[0]'.
To initialize a field, use the syntax 'name = value'.
- Code
missing_assignment_in_initializer- Severity
- error
- Message
Expected an assignment after the field name.
Try adding either a catch or finally clause, or remove the try statement.
- Code
missing_catch_or_finally- Severity
- error
- Message
A try block must be followed by an 'on', 'catch', or 'finally' clause.
Try adding the closing parenthesis.
- Code
missing_closing_parenthesis- Severity
- error
- Message
The closing parenthesis is missing.
Try adding the name of the type of the variable or the keyword 'var'.
- Code
missing_const_final_var_or_type- Severity
- error
- Message
Variables must be declared using the keywords 'const', 'final', 'var' or a type name.
- Code
missing_const_in_list_literal- Severity
- error
- Message
Seeing this message constitutes a bug. Please report it.
- Code
missing_const_in_map_literal- Severity
- error
- Message
Seeing this message constitutes a bug. Please report it.
- Code
missing_const_in_set_literal- Severity
- error
- Message
Seeing this message constitutes a bug. Please report it.
Try adding either an explicit non-'null' default value or the 'required' modifier.
- Code
missing_default_value_for_parameter- Severity
- error
- Message
The parameter '{}' can't have a value of 'null' because of its type, but the implicit default value is 'null'.- Message
With null safety, use the 'required' keyword, not the '@required' annotation.
Try adding ….
- Code
missing_dependency- Severity
- warning
- Message
Missing a dependency on imported {}.
- Code
missing_digit- Severity
- error
- Message
Decimal digit expected.
Try adding a body and defining at least one constant.
- Code
missing_enum_body- Severity
- error
- Message
An enum definition must have a body with at least one constant name.
Try adding a case clause for the missing constant, or adding a default clause.
- Code
missing_enum_constant_in_switch- Severity
- warning
- Message
Missing case clause for '{}'.
Try adding an exceptional return value.
- Code
missing_exception_value- Severity
- error
- Message
The method {} must have an exceptional return value (the second argument) when the return type of the function is neither 'void', 'Handle', nor 'Pointer'.
Try adding the value to be assigned, or remove the assignment operator.
- Code
missing_expression_in_initializer- Severity
- error
- Message
Expected an expression after the assignment operator.
Add an expression after 'throw' or use 'rethrow' to throw a caught exception.
- Code
missing_expression_in_throw- Severity
- error
- Message
Missing expression after 'throw'.
Try using 'int', 'double' or 'Pointer'.
- Code
missing_field_type_in_struct- Severity
- error
- Message
Fields in struct classes must have an explicitly declared type of 'int', 'double' or 'Pointer'.
Try adding a function body.
- Code
missing_function_body- Severity
- error
- Message
A function body must be provided.
Try adding the keyword 'Function'.
- Code
missing_function_keyword- Severity
- error
- Message
Function types must have the keyword 'Function' before the parameter list.
Try adding a parameter list.
- Code
missing_function_parameters- Severity
- error
- Message
Functions must have an explicit list of parameters.
Try adding the keyword 'get'.
- Code
missing_get- Severity
- error
- Message
Getters must have the keyword 'get' before the getter name.
- Code
missing_hex_digit- Severity
- error
- Message
Hexadecimal digit expected.
- Code
missing_identifier- Severity
- error
- Message
Expected an identifier.
- Code
missing_initializer- Severity
- error
- Message
Expected an initializer.
Try adding the keyword 'operator'.
- Code
missing_keyword_operator- Severity
- error
- Message
Operator declarations must be preceded by the keyword 'operator'.
Try adding a parameter list.
- Code
missing_method_parameters- Severity
- error
- Message
Methods must have an explicit list of parameters.
Try adding a field named 'name'.
- Code
missing_name- Severity
- warning
- Message
The 'name' field is required but missing.
Try providing a name for the parameter or removing the curly braces.
- Code
missing_name_for_named_parameter- Severity
- error
- Message
Named parameters in a function type must have a name
Try adding a library name after the keyword 'library', or remove the library directive if the library doesn't have any parts.
- Code
missing_name_in_library_directive- Severity
- error
- Message
Library directives must include a library name.
Try adding a library name after the 'of'.
- Code
missing_name_in_part_of_directive- Severity
- error
- Message
Part-of directives must include a library name.
Try specifying the getter name explicitly, or using a variable pattern.
- Code
missing_named_pattern_field_name- Severity
- error
- Message
The getter name is not specified explicitly, and the pattern is not a variable.
Try overriding the missing member.
- Code
missing_override_of_must_be_overridden- Severity
- warning
- Message
Missing a required override of '{}'.- Message
Missing a required override of '{}' and '{}'.- Message
Missing a required override of '{}', '{}', and {} more.
Try adding a prefix to the import by adding an 'as' clause.
- Code
missing_prefix_in_deferred_import- Severity
- error
- Message
Deferred imports should have a prefix.
Try adding a primary constructor to the extension type declaration.
- Code
missing_primary_constructor- Severity
- error
- Message
An extension type declaration must have a primary constructor declaration.
Try adding formal parameters after the primary constructor name.
- Code
missing_primary_constructor_parameters- Severity
- error
- Message
A primary constructor declaration must have formal parameters.
- Code
missing_quote- Severity
- error
- Message
Expected quote (' or ").
Try adding the required argument.
- Code
missing_required_argument- Severity
- error
- Message
The named parameter '{}' is required, but there's no corresponding argument.
- Code
missing_required_param- Severity
- warning
- Message
The parameter '{}' is required.- Message
The parameter '{}' is required. {}.