w_common 1.11.1

  • README.md
  • Installing
  • Versions
  • 91


A collection of helpful utilities for use in Dart projects. Right now, it includes the following:

  • Disposable interface / mixin to assist with cleaning up streams and other data structures that won't necessarily be garbage collected without some manual intervention.
  • A simple typedef that can be parameterized to represent a zero-arity callback that returns a particular type.
  • InvalidationMixin mixin used to mark a class as requiring validation.
  • JsonSerializable interface to indicate that something can be serialized to JSON.

We expect this list to grow as we identify small pieces of code that are useful across a wide variety of Dart projects, especially in cases where there is value in projects sharing a single implementation.

1. Depend on it

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

  w_common: "^1.11.1"

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:w_common/w_common.dart';
Version Uploaded Documentation Archive
1.11.1 Jan 10, 2018 Go to the documentation of w_common 1.11.1 Download w_common 1.11.1 archive
1.11.0 Jan 2, 2018 Go to the documentation of w_common 1.11.0 Download w_common 1.11.0 archive
1.10.0 Dec 21, 2017 Go to the documentation of w_common 1.10.0 Download w_common 1.10.0 archive
1.9.0 Oct 26, 2017 Go to the documentation of w_common 1.9.0 Download w_common 1.9.0 archive
1.8.2 Aug 28, 2017 Go to the documentation of w_common 1.8.2 Download w_common 1.8.2 archive
1.8.1 Aug 15, 2017 Go to the documentation of w_common 1.8.1 Download w_common 1.8.1 archive
1.8.0 Aug 9, 2017 Go to the documentation of w_common 1.8.0 Download w_common 1.8.0 archive
1.7.2 Jul 25, 2017 Go to the documentation of w_common 1.7.2 Download w_common 1.7.2 archive
1.7.1 Jul 24, 2017 Go to the documentation of w_common 1.7.1 Download w_common 1.7.1 archive
1.7.0 Jul 21, 2017 Go to the documentation of w_common 1.7.0 Download w_common 1.7.0 archive

All 21 versions...


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


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


Detected platforms: web

Primary library: package:w_common/w_common.dart with components: html.


  • Maintain CHANGELOG.md.

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

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

    None of the files in your example/ directory matches a known example patterns. Common file name patterns include: main.dart, example.dart or you could also use w_common.dart.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.12.0 <2.0.0
logging ^0.11.0 0.11.3+1
meta ^1.0.4 1.1.2
Dev dependencies
coverage ^0.7.2
dart_dev ^1.8.0
dart_style ^1.0.8
dartdoc ^0.13.0
mockito >=0.8.0
test ^0.12.4