Skip to content

Dart style in the on/once methods #3

@gil0mendes

Description

@gil0mendes

We should provide a more Dart style notation of the on() and once() methods. Of course we will maintain the shorter version :)

// subscribing
emitter.on('Success').listen(eventHandler);
emitter.on('Success', eventHandler);
// subscribing only to the first next event
emitter.once('Success').then(eventHandler);
emitter.once('Success', eventHandler);

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions