w_common 1.15.1

  • README.md
  • Installing
  • Versions
  • 77

w_common #

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.

Use this package as a library

1. Depend on it

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

  w_common: ^1.15.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.15.1 Feb 15, 2019 Go to the documentation of w_common 1.15.1 Download w_common 1.15.1 archive
1.15.0 Oct 2, 2018 Go to the documentation of w_common 1.15.0 Download w_common 1.15.0 archive
1.14.0 Oct 2, 2018 Go to the documentation of w_common 1.14.0 Download w_common 1.14.0 archive
1.13.0 Jun 19, 2018 Go to the documentation of w_common 1.13.0 Download w_common 1.13.0 archive
1.12.0 May 14, 2018 Go to the documentation of w_common 1.12.0 Download w_common 1.12.0 archive
1.11.2 Mar 9, 2018 Go to the documentation of w_common 1.11.2 Download w_common 1.11.2 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

All 27 versions...

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 15, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.1.0
  • pana: 0.12.13


Detected platforms: web

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

Health suggestions

Format lib/src/browser/disposable_browser.dart.

Run dartfmt to format lib/src/browser/disposable_browser.dart.

Maintenance issues and suggestions

Provide a file named CHANGELOG.md. (-20 points)

Changelog entries help developers follow the progress of your package. See the example generated by stagehand.

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.

None of the files in the package's example/ directory matches known example patterns.

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

For more information see the pub package layout conventions.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.24.3 <3.0.0
intl >=0.14.0 <0.16.0 0.15.7
logging ^0.11.0 0.11.3+2
meta ^1.0.4 1.1.7
Transitive dependencies
path 1.6.2
Dev dependencies
build_runner >=0.6.0 <1.0.0
build_test >=0.9.0 <1.0.0
build_web_compilers >=0.2.0 <1.0.0
dart2_constant ^1.0.0
dependency_validator ^1.2.2
mockito >=2.2.2 <4.0.0
test >=0.12.34 <2.0.0