Skip to content

Default values for named parameters are documented using a : instead of =. #2087

@lrhn

Description

@lrhn

See, e.g., https://api.dartlang.org/stable/2.6.1/dart-core/RegExp-class.html which contains

RegExp(String source, { bool multiLine: false bool caseSensitive: true @Since("2.4") bool unicode: false @Since("2.4") bool dotAll: false })

(missing commas aside, #2052).
The language allows, and recommends, using = to separate parameter and default value, so it would be prettier if the documentation used = as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2A bug or feature request we're likely to work ontype-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions