Skip to content
A collection of helpful utilities for use in Dart projects.
Dart HTML Other
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
bin
example add_disposable_type_name Aug 6, 2019
lib
test/unit
tool
.gitignore
.travis.yml
CONTRIBUTING.md
Dockerfile
LICENSE
NOTICE
README.md
analysis_options.yaml
dart_test.yaml
docs.yml
pubspec.yaml

README.md

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.
  • A CSS compilation executable that can be run via
    pub run w_common:compile_sass
    
    from the root of your package that depends on w_common.
    • It can also be used as a watcher - great for when you're doing a lot of work on .scss files and don't want to have to remember to keep re-running the script after each change.
      pub run w_common:compile_sass --watch
      
    • Run
      pub run w_common:compile_sass -h
      
      for more usage details / instructions.

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.

You can’t perform that action at this time.