Skip to content

[pigeon] Add support for multiple event channel classes per definition file. #162828

@tarrinneal

Description

@tarrinneal

As mentioned flutter/packages#8566 (comment)
Currently pigeon event channels methods must all be defined in a single EventChannel annotated class. This could be confusing and overly restrictive. We should consider allowing multiple definition classes.

This will require checking for name collisions manually, since the definition file has them scope limited, while the actual generated code has all event channel methods top level.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projectc: new featureNothing broken; request for a new capabilityp: pigeonrelated to pigeon messaging codegen toolpackageflutter/packages repository. See also p: labels.team-ecosystemOwned by Ecosystem teamtriaged-ecosystemTriaged by Ecosystem team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions