signals 0.6.0

  • README.md
  • Installing
  • Versions
  • 0

Signals

Subscribable signals for Dart.

API Reference Documentation

For example:

var s = new Signal();

s.on((arg) => print('Emitted signal with arg: $arg')); s.emit(1)

> Emitted signal with arg: 1

1. Depend on it

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


dependencies:
  signals: "^0.6.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:signals/signals.dart';
        
Version Uploaded Documentation Archive
0.6.0 Oct 8, 2013 Go to the documentation of signals 0.6.0 Download signals 0.6.0 archive
0.4.0 Jan 22, 2013 Go to the documentation of signals 0.4.0 Download signals 0.4.0 archive
0.3.0 Jan 2, 2013 Go to the documentation of signals 0.3.0 Download signals 0.3.0 archive
0.2.0 Jan 2, 2013 Go to the documentation of signals 0.2.0 Download signals 0.2.0 archive
0.1.0 Dec 28, 2012 Go to the documentation of signals 0.1.0 Download signals 0.1.0 archive

Analysis

This feature is new.
We welcome feedback.

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

  • tool failures on Dec 6, 2017
  • Dart: 2.0.0-dev.8.0
  • pana: 0.7.3+1

Scores

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

Platforms

Detected platforms:

Error(s) in lib/signals.dart: The class 'Future' doesn't have a constructor named 'immediate'.

Suggestions

  • Fix lib/signals.dart.

    Strong-mode analysis of lib/signals.dart failed with the following error:

    line: 45 col: 58
    The class 'Future' doesn't have a constructor named 'immediate'.

  • Maintain CHANGELOG.md.

    Changelog entries help clients to follow the progress in your code.

Dependencies

Package Constraint Resolved Available
Direct dependencies
unittest any 0.12.3 0.12.4+1
Transitive dependencies
analyzer 0.25.0+1 0.30.0+4
args 0.13.7 1.2.0
async 1.13.3 2.0.1
barback 0.15.2+13
charcode 1.1.1
collection 1.14.3
convert 2.0.1
crypto 0.9.1 2.0.2+1
glob 1.1.5
http 0.11.3+16
http_multi_server 1.3.2 2.0.4
http_parser 0.0.2+8 3.1.1
matcher 0.12.0+2 0.12.1+4
mime 0.9.4
package_config 1.0.3
package_resolver 1.0.2
path 1.5.1
pool 1.3.3
pub_semver 1.3.2
shelf 0.6.3 0.7.1
shelf_static 0.2.6
shelf_web_socket 0.0.1+5 0.2.2
source_map_stack_trace 1.1.4
source_maps 0.10.4
source_span 1.4.0
stack_trace 1.9.1
string_scanner 0.1.5 1.0.2
test 0.12.3+9 0.12.29
typed_data 1.1.5
watcher 0.9.7+4
yaml 2.1.13