observable_data 0.2.0

observable_data #

Observable data

Getting Started #

This project is a starting point for a Dart package, a library module containing code that can be shared easily across multiple Flutter or Dart projects.

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

[0.2.0] - 3/9/2019

  • Added ListFlexibleData

Use this package as a library

1. Depend on it

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

  observable_data: ^0.2.0

2. Install it

You can install packages from the command line:

with Flutter:

$ flutter pub get

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

3. Import it

Now in your Dart code, you can use:

import 'package:observable_data/observable_data.dart';
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 18, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.5
  • Flutter: 1.12.13+hotfix.7

Health issues and suggestions

Fix lib/flexible_data/list/iterable_filter.dart. (-25.38 points)

Analysis of lib/flexible_data/list/iterable_filter.dart failed with 1 error, 1 hint:

line 6 col 22: 'PrimaryType' can't be used contravariantly or invariantly in 'ImmutableListFlexibleData<PrimaryType, bool Function(PrimaryType)>'.

line 2 col 8: Unused import: 'package:observable_data/flexible_data/immutable_flexible_data.dart'.

Fix lib/flexible_data/filter.dart. (-25 points)

Analysis of lib/flexible_data/filter.dart failed with 1 error:

line 5 col 14: 'PrimaryType' can't be used contravariantly or invariantly in 'ImmutableFlexibleData<PrimaryType, bool Function(PrimaryType)>'.

Fix lib/flexible_data/list/iterable_action.dart. (-25 points)

Analysis of lib/flexible_data/list/iterable_action.dart failed with 1 error:

line 5 col 22: 'PrimaryType' can't be used contravariantly or invariantly in 'ImmutableListFlexibleData<PrimaryType, dynamic Function(PrimaryType)>'.

Fix additional 10 files with analysis or formatting issues. (-25 points)

Additional issues in the following files:

  • lib/flexible_data/mapper.dart (1 error)
  • lib/factory/observable_factory.dart (Run flutter format to format lib/factory/observable_factory.dart.)
  • lib/flexible_data/flexible_data.dart (Run flutter format to format lib/flexible_data/flexible_data.dart.)
  • lib/flexible_data/immutable_flexible_data.dart (Run flutter format to format lib/flexible_data/immutable_flexible_data.dart.)
  • lib/flexible_data/list/immutable_list_flexible_data.dart (Run flutter format to format lib/flexible_data/list/immutable_list_flexible_data.dart.)
  • lib/flexible_data/list/mutable_list_flexible_data.dart (Run flutter format to format lib/flexible_data/list/mutable_list_flexible_data.dart.)
  • lib/flexible_data/mutable_flexible_data.dart (Run flutter format to format lib/flexible_data/mutable_flexible_data.dart.)
  • lib/immutable_observable_data.dart (Run flutter format to format lib/immutable_observable_data.dart.)
  • lib/observable_data.dart (Run flutter format to format lib/observable_data.dart.)
  • lib/types.dart (Run flutter format to format lib/types.dart.)

Document public APIs. (-1 points)

93 out of 93 API elements have no dartdoc comment.Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API.

Maintenance suggestions

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and observable_data.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 >=2.0.0-dev.68.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.11 1.14.12
meta 1.1.8
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies