passive_data 0.7.1+1

  • README.md
  • Installing
  • Versions
  • 36

Passive data

Pub Package

This package contains tools to deal with passive data structures in Dart. It is designed for usage within Omnibus, but it could be used for other projects as well.

Specification

Passive data structures are currently intended to be compatible with JSON. Encoding and decoding functions for other types (such as integer indexed maps and sets) are provided by this package. The following Dart types are allowed in passive data structures:

  • dynamic (allowed but not recommended)
  • null (empty fields)
  • num (integer or floating point)
  • bool
  • String
  • List
  • Map<String

1. Depend on it

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


dependencies:
  passive_data: "^0.7.1+1"

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter packages get

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

3. Import it

Now in your Dart code, you can use:


import 'package:passive_data/passive_data.dart';
        
Version Uploaded Documentation Archive
0.7.1+1 Oct 17, 2016 Go to the documentation of passive_data 0.7.1+1 Download passive_data 0.7.1+1 archive
0.7.1 Apr 9, 2016 Go to the documentation of passive_data 0.7.1 Download passive_data 0.7.1 archive
0.7.0 Apr 9, 2016 Go to the documentation of passive_data 0.7.0 Download passive_data 0.7.0 archive
0.6.0 Apr 9, 2016 Go to the documentation of passive_data 0.6.0 Download passive_data 0.6.0 archive
0.5.1 Apr 7, 2016 Go to the documentation of passive_data 0.5.1 Download passive_data 0.5.1 archive
0.5.0 Apr 7, 2016 Go to the documentation of passive_data 0.5.0 Download passive_data 0.5.0 archive
0.4.0 Apr 5, 2016 Go to the documentation of passive_data 0.4.0 Download passive_data 0.4.0 archive
0.3.0+2 Apr 5, 2016 Go to the documentation of passive_data 0.3.0+2 Download passive_data 0.3.0+2 archive
0.3.0+1 Mar 31, 2016 Go to the documentation of passive_data 0.3.0+1 Download passive_data 0.3.0+1 archive
0.3.0 Mar 31, 2016 Go to the documentation of passive_data 0.3.0 Download passive_data 0.3.0 archive

All 14 versions...

Analysis

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

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

Scores

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

Platforms

Detected platforms: Flutter, web, other

No platform restriction found in primary library package:passive_data/passive_data.dart.

Suggestions

  • Maintain CHANGELOG.md.

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

  • Fix analysis and formatting issues.

    Analysis or formatting checks reported 4 warnings 1 hint.

    Strong-mode analysis of lib/src/pds.dart gave the following warning:

    line: 69 col: 12
    A function of type '(String) → String' can't be assigned to a location of type '(dynamic) → String'.

    Strong-mode analysis of lib/src/utils.dart gave the following hint:

    line: 7 col: 7
    The top level variable '_primitive' isn't used.

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

  • Package is pre-v1 release.

    While there is nothing inherently wrong with versions of 0.*.*, it usually means that the author is still experimenting with the general direction API.

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

  • Use analysis_options.yaml.

    Rename old .analysis_options file to analysis_options.yaml.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.8.0 <2.0.0
Dev dependencies
test ^0.12.7