events2 0.1.1

  • Installing
  • Versions
  • new51

dart-events #

Event emitter for dart2.

Changelog #

[0.1.1] - 2019.01.24

  • Change filename events.dart => events2.dart.

[0.1.0] - 2019.01.14

  • Initial release.

Use this package as a library

1. Depend on it

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

  events2: ^0.1.1

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 flutter packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:events2/events2.dart';
Version Uploaded Documentation Archive
0.1.1 Jan 23, 2019 Go to the documentation of events2 0.1.1 Download events2 0.1.1 archive
0.1.0 Jan 23, 2019 Go to the documentation of events2 0.1.0 Download events2 0.1.0 archive
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Feb 20, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.1.0
  • pana: 0.12.13+1


Detected platforms: Flutter, web, other

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

Health suggestions

Fix lib/src/event_emitter.dart. (-0.50 points)

Analysis of lib/src/event_emitter.dart reported 1 hint:

line 44 col 9: Do not use more than one case with same value (5 and 5)

Format lib/events2.dart.

Run dartfmt to format lib/events2.dart.

Maintenance suggestions

The package description is too short. (-20 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and events2.dart. Packages with multiple examples should provide example/

For more information see the pub package layout conventions.


Package Constraint Resolved Available
Direct dependencies
Dart SDK <3.0.0