Remove the reference to '…'.
- Code
removed_lint_use- Severity
- warning
- Message
'{}' was removed in Dart '{}'
Replace '…' with '…'.
- Code
replaced_lint- Severity
- warning
- Message
'{}' was replaced by '{}' in Dart '{}'.
Replace '…' with '…'.
- Code
replaced_lint_use- Severity
- warning
- Message
'{}' was replaced by '{}' in Dart '{}'.
Try removing the modifier.
- Code
representation_field_modifier- Severity
- error
- Message
Representation fields can't have the modifier 'var'.
Try removing the trailing comma.
- Code
representation_field_trailing_comma- Severity
- error
- Message
The representation field can't have a trailing comma.
Try removing the rest pattern.
- Code
rest_element_in_map_pattern- Severity
- error
- Message
A map pattern can't contain a rest pattern.
Try moving the expression into a catch clause, or using a 'throw' expression.
- Code
rethrow_outside_catch- Severity
- error
- Message
A rethrow must be inside of a catch clause.
Try removing the return statement or using a factory constructor.
- Code
return_in_generative_constructor- Severity
- error
- Message
Constructors can't return values.
Try replacing 'return' with 'yield', using a block function body, or changing the method body modifier.
- Code
return_in_generator- Severity
- error
- Message
Can't return a value from a generator function that uses the 'async*' or 'sync*' modifier.
Annotate '…' with 'doNotStore'.
- Code
return_of_do_not_store- Severity
- warning
- Message
'{}' is annotated with 'doNotStore' and shouldn't be returned unless '{}' is also annotated.
- Code
return_of_invalid_type- Severity
- error
- Message
A value of type '{}' can't be returned from the constructor '{}' because it has a return type of '{}'.- Message
A value of type '{}' can't be returned from the function '{}' because it has a return type of '{}'.- Message
A value of type '{}' can't be returned from the method '{}' because it has a return type of '{}'.
- Code
return_of_invalid_type_from_closure- Severity
- error
- Message
The returned type '{}' isn't returnable from a '{}' function, as required by the closure's context.
- Code
return_without_value- Severity
- error
- Message
The return value is missing after 'return'.
Try updating your 'pubspec.yaml' to set the minimum SDK constraint to 2.15 or higher, and running 'pub get'.
- Code
sdk_version_constructor_tearoffs- Severity
- warning
- Message
Tearing off a constructor requires the 'constructor-tearoffs' language feature.
Try updating the SDK constraints.
- Code
sdk_version_gt_gt_gt_operator- Severity
- warning
- Message
The operator '>>>' wasn't supported until version 2.14.0, but this code is required to be able to run on earlier versions.
Try updating the SDK constraints.
- Code
sdk_version_since- Severity
- warning
- Message
This API is available since SDK {}, but constraints '{}' don't guarantee it.
Try removing the keyword 'sealed'.
- Code
sealed_enum- Severity
- error
- Message
Enums can't be declared to be 'sealed'.
Try removing the 'sealed' keyword.
- Code
sealed_mixin- Severity
- error
- Message
A mixin can't be declared 'sealed'.
Try removing the 'sealed' keyword.
- Code
sealed_mixin_class- Severity
- error
- Message
A mixin class can't be declared 'sealed'.
- Code
set_element_type_not_assignable- Severity
- error
- Message
The element type '{}' can't be assigned to the set type '{}'.
Try removing 'set'.
- Code
setter_constructor- Severity
- error
- Message
Constructors can't be a setter.
Try moving the setter outside the method or function.
- Code
setter_in_function- Severity
- error
- Message
Setters can't be defined within methods or functions.
Consider declaring the corresponding activity element with `screenOrientation="unspecified"` or `"fullSensor"` attribute.
- Code
setting_orientation_on_activity- Severity
- warning
- Message
The `<activity>` element should not be locked to any orientation so that users can take advantage of the multi-window environments and larger screens on Chrome OS
Try renaming one of the prefixes.
- Code
shared_deferred_prefix- Severity
- error
- Message
The prefix of a deferred import can't be used in other import directives.
Try adjusting the arguments in the 'Array' annotation.
- Code
size_annotation_dimensions- Severity
- error
- Message
'Array's must have an 'Array' annotation that matches the dimensions.
Try making the deferred import non-deferred.
- Code
spread_expression_from_deferred_library- Severity
- error
- Message
Constant values from a deferred library can't be spread into a const literal.
Try simplifying the code.
- Code
stack_overflow- Severity
- error
- Message
The file has too many nested expressions or statements.
- Code
static_access_to_instance_member- Severity
- error
- Message
Instance member '{}' can't be accessed using static access.
Try removing the keyword 'static'.
- Code
static_constructor- Severity
- error
- Message
Constructors can't be static.
Try adding a body to the getter, or removing the keyword 'static'.
- Code
static_getter_without_body- Severity
- error
- Message
A 'static' getter must have a body.
Try removing the keyword 'static'.
- Code
static_operator- Severity
- error
- Message
Operators can't be static.
Try adding a body to the setter, or removing the keyword 'static'.
- Code
static_setter_without_body- Severity
- error
- Message
A 'static' setter must have a body.
Use explicit type arguments for '…'.
- Code
strict_raw_type- Severity
- warning
- Message
The generic type '{}' should have explicit type arguments but doesn't.
- Code
subtype_of_base_or_final_is_not_base_final_or_sealed- Severity
- error
- Message
The mixin '{}' must be 'base' because the supertype '{}' is 'base'.- Message
The mixin '{}' must be 'base' because the supertype '{}' is 'final'.- Message
The type '{}' must be 'base', 'final' or 'sealed' because the supertype '{}' is 'base'.- Message
The type '{}' must be 'base', 'final' or 'sealed' because the supertype '{}' is 'final'.
Try specifying a different interface, removing the class from the list, or changing the import to not be deferred.
- Code
subtype_of_deferred_class- Severity
- error
- Message
Classes and mixins can't implement deferred classes.- Message
Classes can't mixin deferred classes.- Message
Classes can't extend deferred classes.
Try specifying a different superclass, or removing the extends clause.
- Code
subtype_of_disallowed_type- Severity
- error
- Message
Classes can't extend '{}'.- Message
Classes can't mixin '{}'.- Message
'{}' can't be used as a superclass constraint.- Message
Classes and mixins can't implement '{}'.
Try composing instead of inheriting, or refer to the documentation of '…' for more information.
- Code
subtype_of_sealed_class- Severity
- warning
- Message
The class '{}' shouldn't be extended, mixed in, or implemented because it's sealed.
Try extending 'Struct', 'Union', or 'AbiSpecificInteger' directly.
- Code
subtype_of_struct_class- Severity
- error
- Message
The class '{}' can't extend '{}' because '{}' is a subtype of 'Struct', 'Union', or 'AbiSpecificInteger'.- Message
The class '{}' can't implement '{}' because '{}' is a subtype of 'Struct', 'Union', or 'AbiSpecificInteger'.- Message
The class '{}' can't mix in '{}' because '{}' is a subtype of 'Struct', 'Union', or 'AbiSpecificInteger'.
Try removing the explicit type annotation from the parameter.
- Code
super_formal_parameter_type_is_not_subtype_of_associated- Severity
- error
- Message
The type '{}' of this parameter isn't a subtype of the type '{}' of the associated super constructor parameter.
Try changing the name to the name of an existing named super constructor parameter, or creating such named parameter.
- Code
super_formal_parameter_without_associated_named- Severity
- error
- Message
No associated named super constructor parameter.
Try using a normal parameter, or adding more positional parameters to the super constructor.
- Code
super_formal_parameter_without_associated_positional- Severity
- error
- Message
No associated positional super constructor parameter.
Try removing the 'super' invocation.
- Code
super_in_enum_constructor- Severity
- error
- Message
The enum constructor can't have a 'super' initializer.
- Code
super_in_extension- Severity
- error
- Message
The 'super' keyword can't be used in an extension because an extension doesn't have a superclass.
- Code
super_in_extension_type- Severity
- error
- Message
The 'super' keyword can't be used in an extension type because an extension type doesn't have a superclass.
- Code
super_in_invalid_context- Severity
- error
- Message
Invalid context for 'super' invocation.
- Code
super_in_redirecting_constructor- Severity
- error
- Message
The redirecting constructor can't have a 'super' initializer.
- Code
super_initializer_in_object- Severity
- error
- Message
The class 'Object' can't invoke a constructor from a superclass.
Try removing the `super.` prefix or making the parameter non-declaring.
- Code
super_initializing_declaring_parameter- Severity
- error
- Message
Declaring parameters can't be super parameters.
- Code
super_invocation_not_last- Severity
- error
- Message
The superconstructor call must be last in an initializer list.
Try specifying a different superclass, or removing the extends clause.
- Code
supertype_expands_to_type_parameter- Severity
- error
- Message
A type alias that expands to a type parameter can't be used as a superclass.- Message
A type alias that expands to a type parameter can't be used as a superclass constraint.- Message
A type alias that expands to a type parameter can't be mixed in.- Message
A type alias that expands to a type parameter can't be implemented.
Try adding 'break', 'return', or 'throw'.
- Code
switch_case_completes_normally- Severity
- error
- Message
The 'case' shouldn't complete normally.
Try moving the default case after the other case clauses.
- Code
switch_has_case_after_default_case- Severity
- error
- Message
The default case should be the last case in a switch statement.
Try removing all but one default case.
- Code
switch_has_multiple_default_cases- Severity
- error
- Message
The 'default' case can only be declared once.
Try tearing off a constructor of a concrete class, or a non-generative constructor.
- Code
tearoff_of_generative_constructor_of_abstract_class- Severity
- error
- Message
A generative constructor of an abstract class can't be torn off.
Try calling the function directly with a constant argument.
- Code
tearoff_with_must_be_const_parameter- Severity
- warning
- Message
The function '{}' has a parameter marked as '@mustBeConst' and can't be torn off.
Try removing the code point or using the Unicode escape sequence '\u…'.
- Code
text_direction_code_point_in_literal- Severity
- warning
- Message
The Unicode code point 'U+{}' changes the appearance of text from how it's interpreted by the compiler.
- Code
throw_of_invalid_type- Severity
- error
- Message
The type '{}' of the thrown expression must be assignable to 'Object'.
Try adding an explicit type to one or more of the variables in the cycle in order to break the cycle.
- Code
top_level_cycle- Severity
- error
- Message
The type of '{}' can't be inferred because it depends on itself through the cycle: {}.
Try removing the operator, moving it to a class, or converting it to be a function.
- Code
top_level_operator- Severity
- error
- Message
Operators must be declared within a class.
- Code
type_alias_cannot_reference_itself- Severity
- error
- Message
Typedefs can't reference themselves directly or recursively via another typedef.
Try using a different type, or changing the import to not be deferred.
- Code
type_annotation_deferred_class- Severity
- error
- Message
The deferred type '{}' can't be used in a declaration, cast, or type test.
Try using a type that is or is a subclass of '…'.
- Code
type_argument_not_matching_bounds- Severity
- error
- Message
'{}' doesn't conform to the bound '{}' of the type parameter '{}'.
Try removing the type arguments.
- Code
type_arguments_on_type_variable- Severity
- error
- Message
Can't use type arguments with type variable '{}'.
Try removing the type appearing before 'factory'.
- Code
type_before_factory- Severity
- error
- Message
Factory constructors cannot have a return type.
Try replacing the 'is! Null' check with '!= null'.
- Code
type_check_with_null- Severity
- warning
- Message
Tests for non-null should be done with '!= null'.- Message
Tests for null should be done with '== null'.
Try removing the type parameters.
- Code
type_parameter_on_constructor- Severity
- error
- Message
Constructors can't have type parameters.
Try removing the type parameters.
- Code
type_parameter_on_operator- Severity
- error
- Message
Types parameters aren't allowed when defining an operator.
Try removing the reference to the type parameter, or making the member an instance member.
- Code
type_parameter_referenced_by_static- Severity
- error
- Message
Static members can't reference type parameters of the class.
Try using a type that is the same as or a subclass of '…'.
- Code
type_parameter_supertype_of_its_bound- Severity
- error
- Message
'{}' can't be a supertype of its upper bound.
Try correcting the name to match an existing type.
- Code
type_test_with_non_type- Severity
- error
- Message
The name '{}' isn't a type and can't be used in an 'is' expression.
Try changing the name to the name of an existing type, or creating a type with the name '…'.
- Code
type_test_with_undefined_name- Severity
- error
- Message
The name '{}' isn't defined, so it can't be used in an 'is' expression.
- Code
typedef_augmentation- Severity
- error
- Message
Type aliases can't be augmented.
Try moving the typedef to the top-level.
- Code
typedef_in_class- Severity
- error
- Message
Typedefs can't be declared inside classes.
Try adding an 'await'.
- Code
unawaited_return_in_try_block- Severity
- warning
- Message
Returning a 'Future' without 'await' inside a try block.
Try checking that the value isn't 'null' before using it in a spread, or use a null-aware spread.
- Code
unchecked_use_of_nullable_value- Severity
- error
- Message
A nullable expression can't be used in a spread.- Message
The function can't be unconditionally instantiated because it can be 'null'.- Message
The function can't be unconditionally invoked because it can be 'null'.- Message
The method '{}' can't be unconditionally invoked because the receiver can be 'null'.- Message
The operator '{}' can't be unconditionally invoked because the receiver can be 'null'.- Message
A nullable expression can't be used in a yield-each statement.
Try changing the name to the name of an existing class, or creating a class with the name '…'.
- Code
undefined_class- Severity
- error
- Message
Undefined class '{}'.
Try defining a constructor named '…' in '…', or invoking a different constructor.
- Code
undefined_constructor_in_initializer- Severity
- error
- Message
The class '{}' doesn't have a constructor named '{}'.- Message
The class '{}' doesn't have an unnamed constructor.
Try correcting the name to the name of an existing constructor, or defining constructor with the name '…'.
- Code
undefined_enum_constructor- Severity
- error
- Message
The enum doesn't have a constructor named '{}'.- Message
The enum doesn't have an unnamed constructor.
Try correcting the name to the name of an existing member, or defining a method or getter named '…' in the extension.
- Code
undefined_extension_member_read- Severity
- error
- Message
The extension '{}' doesn't have an instance member named '{}'.- Message
The member '{}' is declared in '{}', but private names are visible only in their own library.- Message
There's a setter '{}' in the extension '{}', but no getter.
Try defining a setter named '…' in the extension.
- Code
undefined_extension_member_write- Severity
- error
- Message
There's a getter '{}' in the extension '{}', but no setter.- Message
The extension '{}' doesn't have an instance setter named '{}'.- Message
The member '{}' is declared in '{}', but private names are visible only in their own library.- Message
The {} '{}' in the extension '{}' can't be assigned to.
Try defining the operator '…'.
- Code
undefined_extension_operator- Severity
- error
- Message
The operator '{}' isn't defined for the extension '{}'.
Try removing the name from the list of hidden members.
- Code
undefined_hidden_name- Severity
- warning
- Message
The library '{}' doesn't export a member with the hidden name '{}'.
Try correcting the name to one that is defined, defining the name, or adding 'async' to the enclosing function body.
- Code
undefined_identifier_await- Severity
- error
- Message
Undefined name 'await' in function body not marked with 'async'.
Try importing the library that defines '…', correcting the name to the name of an existing member, or defining a method, getter, or field named '…'.
- Code
undefined_instance_member_read- Severity
- error
- Message
The member '{}' isn't defined for the type '{}'.- Message
The member '{}' is declared in '{}', but private names are visible only in their own library.- Message
There's a setter '{}' for the type '{}', but no getter.
Try making the field non-final, or removing the assignment.
- Code
undefined_instance_member_write- Severity
- error
- Message
The field '{}' of the type '{}' is final, so it can't be assigned to.- Message
There's a getter '{}' for the type '{}', but no setter.- Message
The setter '{}' isn't defined for the type '{}'.- Message
The member '{}' is declared in '{}', but private names are visible only in their own library.- Message
The {} '{}' of the type '{}' can't be assigned to.
Try using the name of a recognized lint rule.
- Code
undefined_lint- Severity
- warning
- Message
'{}' isn't a recognized lint rule.
Try correcting the name to an existing named parameter's name, or defining a named parameter with the name '…'.
- Code
undefined_named_parameter- Severity
- error
- Message
The named parameter '{}' isn't defined.- Message
The named parameter '_{}' should use the corresponding public name '{}' at the callsite.
Try defining the operator '…'.
- Code
undefined_operator- Severity
- error
- Message
The operator '{}' isn't defined for the type '{}'.
Try correcting the name to the name of an existing declaration, or importing the library that defines '…' with the prefix '…'.
- Code
undefined_prefixed_name_read- Severity
- error
- Message
The name '{}' isn't defined in the libraries imported with the prefix '{}'.- Message
The name '{}' is declared in '{}', but private names are visible only in their own library.- Message
There's a setter '{}' in the libraries imported with the prefix '{}', but no getter.
Try making it a non-constant variable, or removing the assignment.
- Code
undefined_prefixed_name_write- Severity
- error
- Message
The constant '{}' imported with the prefix '{}' can't be assigned to.- Message
The variable '{}' imported with the prefix '{}' is final, so it can't be assigned to.- Message
There's a getter '{}' in the libraries imported with the prefix '{}', but no setter.- Message
The setter '{}' isn't defined in the libraries imported with the prefix '{}'.- Message
The name '{}' is declared in '{}', but private names are visible only in their own library.- Message
The {} '{}' imported with the prefix '{}' can't be assigned to.
- Code
undefined_referenced_parameter- Severity
- warning
- Message
The parameter '{}' isn't defined by '{}'.
Try removing the name from the list of shown members.
- Code
undefined_shown_name- Severity
- warning
- Message
The library '{}' doesn't export a member with the shown name '{}'.
Try wrapping the function type alias in parentheses to access '…' on the 'Type' object.
- Code
undefined_static_member_read- Severity
- error
- Message
The function type '{}' doesn't have a static member named '{}'.- Message
The context type '{}' doesn't have static members or constructors.- Message
The {} '{}' doesn't have a {} named '{}'.- Message
The context type '{}' doesn't have a {} named '{}'.- Message
The member '{}' is declared in '{}', but private names are visible only in their own library.- Message
The context type '{}' is declared in '{}', but private names are visible only in their own library.
Try making it a non-constant field, or removing the assignment.
- Code
undefined_static_member_write- Severity
- error
- Message
The constant '{}' in the {} '{}' can't be assigned to.- Message
The static field '{}' in the {} '{}' is final, so it can't be assigned to.- Message
There's a static getter '{}' in the {} '{}', but no setter.- Message
The function type '{}' doesn't have a static setter named '{}'.- Message
The {} '{}' doesn't have a static setter named '{}'.- Message
The member '{}' is declared in '{}', but private names are visible only in their own library.
Try correcting the name to the name of an existing member, or defining a method, getter, or field named '…' in a superclass.
- Code
undefined_super_member_read- Severity
- error
- Message
The member '{}' isn't defined in a superclass of '{}'.- Message
The member '{}' is declared in '{}', but private names are visible only in their own library.- Message
There's a setter '{}' in a superclass of '{}', but no getter.
Try making the field non-final, or removing the assignment.
- Code
undefined_super_member_write- Severity
- error
- Message
The field '{}' in a superclass of '{}' is final, so it can't be assigned to.- Message
There's a getter '{}' in a superclass of '{}', but no setter.- Message
The setter '{}' isn't defined in a superclass of '{}'.- Message
The member '{}' is declared in '{}', but private names are visible only in their own library.- Message
The {} '{}' in a superclass of '{}' can't be assigned to.
Try defining the operator '…' in a superclass.
- Code
undefined_super_operator- Severity
- error
- Message
The operator '{}' isn't defined in a superclass of '{}'.
Try importing the library that defines '…', correcting the name to one that is defined, or defining the name.
- Code
undefined_unqualified_name_read- Severity
- error
- Message
Undefined name '{}'.- Message
Undefined name '{}' used as an annotation.- Message
There's a setter '{}', but no getter.
Try making it a non-constant variable, or removing the assignment.
- Code
undefined_unqualified_name_write- Severity
- error
- Message
The constant '{}' can't be assigned to.- Message
'{}' is final, so it can't be assigned to.- Message
There's a getter '{}', but no setter.- Message
Undefined name '{}'.- Message
The {} '{}' can't be assigned to.
Try adding a backslash (\) to escape the '$'.
- Code
unexpected_dollar_in_string- Severity
- error
- Message
A '$' has special meaning inside a string, and must be followed by an identifier or an expression in curly braces ({}).
Try removing the '_'.
- Code
unexpected_separator_in_number- Severity
- error
- Message
Digit separators ('_') in a number literal can only be placed between two digits.
Try removing the text.
- Code
unexpected_token- Severity
- error
- Message
Unexpected text '{}'.
- Code
unexpected_tokens- Severity
- error
- Message
Unexpected tokens.
Try removing the name from the list, or removing the whole comment if this is the only name in the list.
- Code
unignorable_ignore- Severity
- warning
- Message
The diagnostic '{}' can't be ignored.
Try correcting the platform name or removing it.
- Code
unknown_platform- Severity
- warning
- Message
The platform '{}' is not a recognized platform.
Try removing the cast.
- Code
unnecessary_cast- Severity
- warning
- Message
Unnecessary cast.
Try removing the cast pattern.
- Code
unnecessary_cast_pattern- Severity
- warning
- Message
Unnecessary cast pattern.
Try removing the dev dependency.
- Code
unnecessary_dev_dependency- Severity
- warning
- Message
The dev dependency on {} is unnecessary because there is also a normal dependency on that package.
Try removing the 'final'.
- Code
unnecessary_final- Severity
- warning
- Message
The keyword 'final' isn't necessary because the parameter is implicitly 'final'.- Message
Local variables should not be marked as 'final'.
Try removing the import directive.
- Code
unnecessary_import- Severity
- hint
- Message
The import of '{}' is unnecessary because all of the used elements are also provided by the import of '{}'.
Try using 'double.isNan', or removing the condition.
- Code
unnecessary_nan_comparison- Severity
- warning
- Message
A double can't equal 'double.nan', so the condition is always 'false'.- Message
A double can't equal 'double.nan', so the condition is always 'true'.
Try removing the declaration of 'noSuchMethod'.
- Code
unnecessary_no_such_method- Severity
- warning
- Message
Unnecessary 'noSuchMethod' declaration.
Try removing the '!' operator.
- Code
unnecessary_non_null_assertion- Severity
- warning
- Message
The '!' will have no effect because the receiver can't be null.
Try replacing the null-assert pattern with its nested pattern.
- Code
unnecessary_null_assert_pattern- Severity
- warning
- Message
The null-assert pattern will have no effect because the matched type isn't nullable.
Try replacing the null-check pattern with its nested pattern.
- Code
unnecessary_null_check_pattern- Severity
- warning
- Message
The null-check pattern will have no effect because the matched type isn't nullable.
Remove the condition.
- Code
unnecessary_null_comparison- Severity
- warning
- Message
The operand must be 'null', so the condition is always 'false'.- Message
The operand must be 'null', so the condition is always 'true'.- Message
The operand can't be 'null', so the condition is always 'false'.- Message
The operand can't be 'null', so the condition is always 'true'.
- Code
unnecessary_question_mark- Severity
- warning
- Message
The '?' is unnecessary because '{}' is nullable without it.
Try removing the set literal around the expression.
- Code
unnecessary_set_literal- Severity
- warning
- Message
Braces unnecessarily wrap this expression in a set literal.
Try correcting the type check, or removing the type check.
- Code
unnecessary_type_check- Severity
- warning
- Message
Unnecessary type check; the result is always 'false'.- Message
Unnecessary type check; the result is always 'true'.
Try removing the wildcard pattern.
- Code
unnecessary_wildcard_pattern- Severity
- warning
- Message
Unnecessary wildcard pattern.
Try adding '….' before the name.
- Code
unqualified_reference_to_non_local_static_member- Severity
- error
- Message
Static members from supertypes must be qualified by the name of the defining type.
Try adding '….' before the name.
- Code
unqualified_reference_to_static_member_of_extended_type- Severity
- error
- Message
Static members from the extended type or one of its superclasses must be qualified by the name of the defining type.
Try removing the case clause, or restructuring the preceding patterns.
- Code
unreachable_switch_case- Severity
- warning
- Message
This case is covered by the previous cases.
Try removing the default clause, or restructuring the preceding patterns.
- Code
unreachable_switch_default- Severity
- warning
- Message
This default clause is covered by the previous cases.
- Code
unrecognized_error_code- Severity
- warning
- Message
'{}' isn't a recognized diagnostic code.
Try changing to `android:required="false"` for this feature.
- Code
unsupported_chrome_os_feature- Severity
- warning
- Message
The feature {} isn't supported on Chrome OS, consider making it optional.
Try adding `android:required="false"` for this feature.
- Code
unsupported_chrome_os_hardware- Severity
- warning
- Message
The feature {} isn't supported on Chrome OS, consider making it optional.
- Code
unsupported_operator- Severity
- error
- Message
The '{}' operator is not supported.
Try removing the option.
- Code
unsupported_option- Severity
- warning
- Message
The option '{}' isn't supported by '{}'.
Try using one of the supported values: ….
- Code
unsupported_value- Severity
- warning
- Message
The value '{}' isn't supported by '{}'.
- Code
unterminated_string_literal- Severity
- error
- Message
Unterminated string literal.
Try removing the catch clause.
- Code
unused_catch_clause- Severity
- warning
- Message
The exception variable '{}' isn't used, so the 'catch' clause can be removed.
Try removing the stack trace variable, or using it.
- Code
unused_catch_stack- Severity
- warning
- Message
The stack trace variable '{}' isn't used and can be removed.
Try removing the declaration of '…'.
- Code
unused_element- Severity
- warning
- Message
The declaration '{}' isn't referenced.
Try removing the unused parameter.
- Code
unused_element_parameter- Severity
- warning
- Message
A value for optional parameter '{}' isn't ever given.
Try removing the field, or using it.
- Code
unused_field- Severity
- warning
- Message
The value of the field '{}' isn't used.
Try removing the '…' keyword to avoid declaring a field, or try using the field, or removing it.
- Code
unused_field_from_primary_constructor- Severity
- warning
- Message
The value of the field '{}' isn't used.
Try removing the import directive.
- Code
unused_import- Severity
- warning
- Message
Unused import: '{}'.
Try removing the label, or using it in either a 'break' or 'continue' statement.
- Code
unused_label- Severity
- warning
- Message
The label '{}' isn't used.
Try removing the variable or using it.
- Code
unused_local_variable- Severity
- warning
- Message
The value of the local variable '{}' isn't used.
Try using the result by invoking a member, passing it to a function, or returning it from this function.
- Code
unused_result- Severity
- warning
- Message
The value of '{}' should be used.- Message
'{}' should be used. {}.
Try removing the name from the list of shown members.
- Code
unused_shown_name- Severity
- warning
- Message
The name {} is shown, but isn't used.
Try creating the file referenced by the URI, or try using a URI for a file that does exist.
- Code
uri_does_not_exist- Severity
- error
- Message
Target of URI doesn't exist: '{}'.
Try creating the file referenced by the URI, or try using a URI for a file that does exist.
- Code
uri_does_not_exist_in_doc_import- Severity
- warning
- Message
Target of URI doesn't exist: '{}'.
Try running the generator that will generate the file referenced by the URI.
- Code
uri_has_not_been_generated- Severity
- error
- Message
Target of URI hasn't been generated: '{}'.
- Code
uri_with_interpolation- Severity
- error
- Message
URIs can't use string interpolation.
Try using dart:ffi for C interop.
- Code
use_of_native_extension- Severity
- error
- Message
Dart native extensions are deprecated and aren't available in Dart 2.15.
Try checking to see if you're using the correct API; there might be a function or call that returns void you didn't expect. Also check type parameters and variables which might also be void.
- Code
use_of_void_result- Severity
- error
- Message
This expression has a type of 'void' so its value can't be used.
Try using a different name.
- Code
values_declaration_in_enum- Severity
- error
- Message
A member named 'values' can't be declared in an enum.
Try removing 'var.'.
- Code
var_and_type- Severity
- error
- Message
Variables can't be declared using both 'var' and a type name.
- Code
var_as_type_name- Severity
- error
- Message
The keyword 'var' can't be used as a type name.
Try removing the keyword 'var'.
- Code
var_class- Severity
- error
- Message
Classes can't be declared to be 'var'.
Try removing the keyword 'var'.
- Code
var_enum- Severity
- error
- Message
Enums can't be declared to be 'var'.
Try removing the keyword 'var', or replacing it with the name of the return type.
- Code
var_return_type- Severity
- error
- Message
The return type can't be 'var'.
Try removing the keyword 'var', or replacing it with the name of the return type.
- Code
var_typedef- Severity
- error
- Message
Typedefs can't be declared to be 'var'.
Try adjusting the arguments in the 'Array' annotation.
- Code
variable_length_array_not_last- Severity
- error
- Message
Variable length 'Array's must only occur as the last field of Structs.
Try removing the keyword.
- Code
variable_pattern_keyword_in_declaration_context- Severity
- error
- Message
Variable patterns in declaration context can't specify 'var' or 'final' keyword.
Try using a subtype, or removing the 'const' keyword.
- Code
variable_type_mismatch- Severity
- error
- Message
A value of type '{}' can't be assigned to a const variable of type '{}'.
Try removing the type arguments.
- Code
void_with_type_arguments- Severity
- error
- Message
Type 'void' can't have type arguments.
Try moving the extends clause before the with clause.
- Code
with_before_extends- Severity
- error
- Message
The extends clause must be before the with clause.
Try converting the value to be a list of relative file paths.
- Code
workspace_field_not_list- Severity
- warning
- Message
The value of the 'workspace' field is required to be a list of relative file paths.
Try converting the value to be a string.
- Code
workspace_value_not_string- Severity
- warning
- Message
Workspace entries are required to be directory paths (strings).
Try using a subdirectory of the directory containing the 'pubspec.yaml' file.
- Code
workspace_value_not_subdirectory- Severity
- warning
- Message
Workspace values must be a relative path of a subdirectory of '{}'.
Try using 'in' type parameters in 'in' positions and 'out' type parameters in 'out' positions in the superinterface.
- Code
wrong_explicit_type_parameter_variance_in_superinterface- Severity
- error
- Message
'{}' is an '{}' type parameter and can't be used in an '{}' position in '{}'.
- Code
wrong_number_of_parameters_for_operator- Severity
- error
- Message
Operator '{}' should declare exactly {} parameters, but {} found.- Message
Operator '-' should declare 0 or 1 parameter, but {} found.
- Code
wrong_number_of_parameters_for_setter- Severity
- error
- Message
Setters must declare exactly one required positional parameter.
Try adjusting the number of type arguments to match the number of type parameters.
- Code
wrong_number_of_type_arguments- Severity
- error
- Message
The type '{}' is declared with {} type parameters, but {} type arguments were given.
Try moving type arguments to after the type name.
- Code
wrong_number_of_type_arguments_constructor- Severity
- error
- Message
The constructor '{}.{}' doesn't have type parameters.- Message
The dot shorthand resolves to the constructor '{}.{}', and type parameters can't be applied to dot shorthand constructor invocations.
Try adjusting the number of type arguments.
- Code
wrong_number_of_type_arguments_element- Severity
- error
- Message
The {} '{}' is declared with {} type parameters, but {} type arguments are given.
Try adjusting the number of type arguments.
- Code
wrong_number_of_type_arguments_enum- Severity
- error
- Message
The enum is declared with {} type parameters, but {} type arguments were given.
Try adjusting the number of type arguments.
- Code
wrong_number_of_type_arguments_extension- Severity
- error
- Message
The extension '{}' is declared with {} type parameters, but {} type arguments were given.
Try adjusting the number of type arguments to match the number of type parameters.
- Code
wrong_number_of_type_arguments_function- Severity
- error
- Message
The type of this function is '{}', which has {} type parameters, but {} type arguments were given.
Try replacing the ':' with '='.
- Code
wrong_separator_for_positional_parameter- Severity
- error
- Message
The default value of a positional parameter should be preceded by '='.
Try not using class type parameters in types of formal parameters of function types, nor in explicitly contravariant or invariant superinterfaces.
- Code
wrong_type_parameter_variance_in_superinterface- Severity
- error
- Message
'{}' can't be used contravariantly or invariantly in '{}'.
Try removing the type parameter or change the explicit variance modifier declaration for the type parameter to another one of 'in', 'out', or 'inout'.
- Code
wrong_type_parameter_variance_position- Severity
- error
- Message
The '{}' type parameter '{}' can't be used in an '{}' position.
Try adding 'async*' or 'sync*' to the enclosing function.
- Code
yield_in_non_generator- Severity
- error
- Message
Yield-each statements must be in a generator function (one marked with either 'async*' or 'sync*').- Message
Yield statements must be in a generator function (one marked with either 'async*' or 'sync*').
- Code
yield_of_invalid_type- Severity
- error
- Message
The type '{}' implied by the 'yield*' expression must be assignable to '{}'.- Message
A yielded value of type '{}' must be assignable to '{}'.