Skip to content

quickfix define missing function as parameter #60178

Open
@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) fixes

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions