Skip to content

quickfix define missing function as parameterΒ #60178

@stephane-archer

Description

@stephane-archer
void foo() {
   bar("Hello Word");
}

you can ask to define bar has a function but you can not ask to define it as a parameter to foo

expected code:

void foo(void Function(String) bar) {
   bar("Hello Word");
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    P4area-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.devexp-quick-fixIssues with analysis server (quick) fixestype-enhancementA request for a change that isn't a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions