ee 0.0.3

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 63

event emitter for Dart

Build Status License Dart

A Dart event emitter implementation without any dependencies.

Requirement

  • dart>=1.20.0

Usage

import 'package:ee/ee.dart' show EventEmitter;

void main() {
  EventEmitter event = new EventEmitter();
  event.on('say hi', (name) {
    print('Hi! $name');   // Hi! Axetroy
  });
  event.emit('say hi', 'Axetroy');
}

Test

./scripts/test

Contribute

git clone https://github.com/axetroy/event-emitter.dart.git
cd ./event-emitter.dart
pub get
./scripts/test

You can flow Contribute Guide

License

The MIT License

Changelog

0.0.1

  • Initial version, created by Stagehand

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  ee: "^0.0.3"

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter packages get

Alternatively, your editor might support pub get or packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:ee/ee.dart';
        
Version Uploaded Documentation Archive
0.0.3 Mar 4, 2017 Go to the documentation of ee 0.0.3 Download ee 0.0.3 archive
0.0.2 Mar 4, 2017 Go to the documentation of ee 0.0.2 Download ee 0.0.2 archive
0.0.1 Mar 4, 2017 Go to the documentation of ee 0.0.1 Download ee 0.0.1 archive

Analysis

This feature is new.
We welcome feedback.
More details: scoring.

We analyzed this package, and provided a score, details, and suggestions below.

  • completed on Feb 3, 2018
  • Dart: 2.0.0-dev.20.0
  • pana: 0.10.1

Scores

Popularity:
Describes how popular the package is relative to other packages. [more]
34 / 100
Health:
Code health derived from static analysis. [more]
86 / 100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100 / 100
Overall score:
Weighted score of the above. [more]
63

Platforms

Detected platforms: Flutter, web, other

No platform restriction found in primary library package:ee/ee.dart.

Suggestions

  • Fix analysis_options.yaml.

    We were unable to parse analysis_options.yaml.

  • Package is pre-v1 release.

    While there is nothing inherently wrong with versions of 0.*.*, it usually means that the author is still experimenting with the general direction API.

  • Maintain an example.

    Create a short demo in the example/ directory to show how to use this package. Common file name patterns include: main.dart, example.dart or you could also use ee.dart.

  • Enable strong mode analysis.

    Strong mode helps you to detect bugs and potential issues earlier.Start your analysis_options.yaml file with the following:

    analyzer:
      strong-mode: true
    

Dependencies

Package Constraint Resolved Available
Dev dependencies
test