message_builder 0.1.3+6

message_builder #

Generate serializable Dart classes from a schema

0.1.3+6 #

  • Allow build_config version 0.4.x.

0.1.3+5 #

  • Allow build versions <2.0.0.

0.1.3+4 #

  • Use the 2.0 stable SDK.

0.1.3+3 #

  • Cast to Iterable before calling map when parsing from json to get a correct reified list type.
  • Switch to Map.map instead of new Map.fromIterable.
  • Cast primitive typed List and Map instances to a corrected reified type.

0.1.3+2 #

  • Allow package:build_config version 0.3.x.

0.1.3+1 #

  • Allow package:build version 0.12.x.

0.1.3 #

  • Upgrade to code_builder version 3.0
  • Add default for generate_for to avoid applying to pubspec.yaml by default.

0.1.2 #

  • Handle keys explicitly set to null as if they were missing.

0.1.1 #

  • Add a build.yaml so this builder can be used with build_runner v0.7.0

0.1.0 #

  • Initial version. Extracted from dart_language_server
  • Refactor to use code_builder.
  • Add support for Map type fields.

Use this package as a library

1. Depend on it

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


dependencies:
  message_builder: ^0.1.3+6

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:message_builder/message_builder.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
3
Health:
Code health derived from static analysis. [more]
99
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
78
Overall:
Weighted score of the above. [more]
46
Learn more about scoring.

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

  • Dart: 2.4.0
  • pana: 0.12.19

Platforms

Detected platforms: Flutter, other

Primary library: package:message_builder/message_builder.dart with components: io, build.

Health suggestions

Fix lib/src/fields.dart. (-1 points)

Analysis of lib/src/fields.dart reported 2 hints:

line 130 col 7: DO use curly braces for all flow control structures.

line 183 col 7: DO use curly braces for all flow control structures.

Fix lib/message_builder.dart. (-0.50 points)

Analysis of lib/message_builder.dart reported 1 hint:

line 41 col 5: Future results in async function bodies must be awaited or marked unawaited using package:pedantic.

Maintenance suggestions

The package description is too short. (-12 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. (-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 message_builder.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.0.0 <3.0.0
build >=0.11.0 <2.0.0 1.1.5
build_config >=0.2.1 <0.5.0 0.4.1
code_builder ^3.1.1 3.2.0
dart_style ^1.0.0 1.2.9
yaml ^2.1.0 2.1.16
Transitive dependencies
analyzer 0.37.0
args 1.5.2
async 2.2.0
built_collection 4.2.2
built_value 6.7.0
charcode 1.1.2
checked_yaml 1.0.1
collection 1.14.11
convert 2.1.1
crypto 2.0.6
csslib 0.16.1
fixnum 0.10.9
front_end 0.1.20
glob 1.1.7
html 0.14.0+2
json_annotation 2.4.0
kernel 0.3.20
logging 0.11.3+2
matcher 0.12.5
meta 1.1.7
package_config 1.0.5
pedantic 1.8.0+1
pub_semver 1.4.2
pubspec_parse 0.1.4
quiver 2.0.3
source_span 1.5.5
stack_trace 1.9.3
string_scanner 1.0.4
term_glyph 1.1.0
typed_data 1.1.6
watcher 0.9.7+12
Dev dependencies
build_runner ^1.0.0
build_test >=0.9.0 <0.11.0
path ^1.5.0 1.6.2
test ^1.0.0

Admin