ARGUMENT_TYPE_NOT_ASSIGNABLE
Invalid assignments
Codiga provides multiple set of rules for 12+ languages. Below we provide a link and a description for all the rules supported by our platform. Note that not all the rules are being listed and described below.
Invalid assignments
Asset does not exists
The body might complete normally
The name isn't a type
Const variables must be initialized with a constant value.
Arguments of a constant creation must be constant expressions.
Cannot infer type
The name 'BubbleStyle' isn't a class.\n
The default 'List' constructor isn't available when null safety is enabled.
Expected to find '['.
Classes can only extend other classes.
Too many positional arguments.
Invalid return type
Classes and mixins can only implement other classes and mixins.
Include file not found
Invalid assignments
Invalid constant value
Invalid override
List element type not assignable
Missing default value for parameter
Expected an identifier.
Missing required parameters
Classes can only mix in mixins and classes.
Mixin can only be applied to class.
The class doesn't have a default constructor.
Missing concrete implementations of methods
Conditions must have a static type of 'bool'
Case expressions must be constant
The default value of an optional parameter must be constant
The values in a const list literal must be constants
The values in a const map literal must be constant
The name isn't a type so it can't be used as a type argument
The name isn't a type and can't be used in an on-catch clause.
The non-nullable local variable must be assigned before it can be used.
Non-nullable instance field must be initialized.
The non-nullable variable must be initialized.
Positional arguments must occur before named arguments.
Invalid return type
Invalid return type from closure
Undefined name
Method can't be unconditionally invoked because the receiver can be 'null'.
Undefined constructor
Undefined getter
Named parameter undefined
Undefined setter
Undefined super member
Uneccessary non null assertion
URI has not been generated
Avoid leading underscores for local identifiers.
Prefer using lowerCamelCase for constant names.