Skip to content

Arguments shorthand #1123

Open
Open
@savioserra

Description

@savioserra

I didn't find any issue talking about this (and to be honest I don't know if it's doable in Dart), but here we go:

String hello({String name}) {
  return "Hello $name";
}

var name = "Foo";

// Instead of hello(name: name), we could just:
hello(name); 

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureProposed language feature that solves one or more problems

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions