Skip to content

Consider style guide addition for shorthand functions with return type void #6924

@zoechi

Description

@zoechi

I just read the style guide and wondered if it would a good idea to mention that shorthand function syntax should not be used for functions with return type void

bad

set someProp(String value) => _someProp = value

void foo() => doSomething();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions