immutable_model 0.2.4

  • Readme
  • Changelog
  • Installing
  • new48

immutable_model #

A tool built upon Equtable and built_collection to help you create complex immutable data models quickly and easily, with validated updates.

[0.2.0] - [0.2.4] #

  • Added ModelEnum
  • Added DateTime support
  • Added utility class M
  • Made unsupported types unrepresentable
  • Validation support on whole model each update
  • Added ModelMerge methods

[0.1.0] #

  • Initial release.

Use this package as a library

1. Depend on it

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


dependencies:
  immutable_model: ^0.2.4

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter pub get

Alternatively, your editor might support pub get or 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:immutable_model/immutable_model.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
0
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
90
Overall:
Weighted score of the above. [more]
48
Learn more about scoring.

We analyzed this package on Jul 3, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.8.4
  • pana: 0.13.13

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 immutable_model.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.7.0 <3.0.0
built_collection ^4.3.2 4.3.2
equatable ^1.2.0 1.2.0
meta ^1.1.8 1.1.8
Transitive dependencies
collection 1.14.13
matcher 0.12.8
path 1.7.0
quiver 2.1.3
stack_trace 1.9.5
Dev dependencies
test any