f_events 1.0.0

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 56

f_events

A library for Dart developers.

Created from templates made available by Stagehand under a BSD-style license.

Usage

A simple usage example:

import 'package:f_events/f_events.dart';
    
class Event {
  String data;

  Event(this.data);
}

void main() {
  event.register('event_name', new Event());
  event.listen('event_name', (Event event) => print(event.data));
        
  event.call('event_name', positionalArguments: ['String']);
}

Todo

  • [ ] Write examples
  • [ ] tests 100%
  • [ ] Make lazy loading
  • [ ] Make mechanism for automatically calling events from property in listener

Features and bugs

Please file feature requests and bugs at the issue tracker.

Changelog

0.0.1

  • Initial version, created by Stagehand

1. Depend on it

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


dependencies:
  f_events: "^1.0.0"

2. Install it

You can install packages from the command line:

with pub:


$ pub get

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

3. Import it

Now in your Dart code, you can use:


import 'package:f_events/f_events.dart';
        
Version Uploaded Documentation Archive
1.0.0 Mar 23, 2018 Go to the documentation of f_events 1.0.0 Download f_events 1.0.0 archive
0.2.0 Mar 23, 2018 Go to the documentation of f_events 0.2.0 Download f_events 0.2.0 archive
0.1.0 Mar 21, 2018 Go to the documentation of f_events 0.1.0 Download f_events 0.1.0 archive

Analysis

We analyzed this package on Apr 23, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0-dev.49.0
  • pana: 0.10.6

Scores

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

Platforms

Detected platforms: web, other

Primary library: package:f_events/f_events.dart with components: mirrors.

Suggestions

  • The description is too short.

    Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

  • 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 f_events.dart.

  • Fix analysis and formatting issues.

    Analysis or formatting checks reported 1 hint.

    Run dartfmt to format lib/src/event_exception.dart.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.20.1 <2.0.0
Dev dependencies
test ^0.12.0