Programming Search⌘K

Dart errors and diagnostics, page 2 of 5

The error codes and warnings of Dart, with the message that each one prints and what causes it. This page has 979 cards.

Only a generic type, generic function, generic instance method, or generic constructor can have type arguments. disallowed_type_instantiation_expression

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.

Source: github.com, dart.dev. JSON record. This entry is a card. Help write this page.

The '…' directive is missing a '…' argument. doc_directive_missing_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.

Source: github.com. JSON record. This entry is a card. Help write this page.

Expected a class name. expected_named_type

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.

Source: github.com. JSON record. This entry is a card. Help write this page.

The factory constructor '…' must have a body or redirection after all augmentations are applied. factory_not_complete_after_augmentations

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.

Source: github.com. JSON record. This entry is a card. Help write this page.

Unexpected number of Native annotation parameters. Expected … but has …. Native instance method annotation must have receiver as first argument. ffi_native_unexpected_number_of_parameters_with_receiver

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.

Source: github.com, dart.dev. JSON record. This entry is a card. Help write this page.