bean_factory_generator 1.2.2

Bean factory generator Dart libraries. A pre-compiled class image containing the contents of the constructor, methods, and properties. Need to use with bean_factory.

Related examples, please refer to flutter-aym-router use

Use this package as a library

1. Depend on it

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


dependencies:
  bean_factory_generator: ^1.2.2

2. Install it

You can install packages from the command line:

with pub:


$ pub get

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

3. Import it

Now in your Dart code, you can use:


import 'package:bean_factory_generator/bean_factory_generator.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
0
Health:
Code health derived from static analysis. [more]
79
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
70
Overall:
Weighted score of the above. [more]
38
Learn more about scoring.

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

  • Dart: 2.8.4
  • pana: 0.13.13

Analysis suggestions

Package not compatible with SDK flutter

Because it is not compatible with any of the supported runtimes: flutter-native, flutter-web

Package not compatible with runtime flutter-native on android

Because of the import of dart:mirrors via the import chain package:bean_factory_generator/bean_factory_generator.dartpackage:bean_factory_generator/src/com/aymtools/beanfactory/generator_factory.dartpackage:bean_factory_generator/src/com/aymtools/beanfactory/builder.dartpackage:source_gen/source_gen.dartpackage:source_gen/src/type_checker.dartdart:mirrors

Package not compatible with runtime flutter-native on ios

Because of the import of dart:mirrors via the import chain package:bean_factory_generator/bean_factory_generator.dartpackage:bean_factory_generator/src/com/aymtools/beanfactory/generator_factory.dartpackage:bean_factory_generator/src/com/aymtools/beanfactory/builder.dartpackage:source_gen/source_gen.dartpackage:source_gen/src/type_checker.dartdart:mirrors

Package not compatible with runtime flutter-native on linux

Because of the import of dart:mirrors via the import chain package:bean_factory_generator/bean_factory_generator.dartpackage:bean_factory_generator/src/com/aymtools/beanfactory/generator_factory.dartpackage:bean_factory_generator/src/com/aymtools/beanfactory/builder.dartpackage:source_gen/source_gen.dartpackage:source_gen/src/type_checker.dartdart:mirrors

Package not compatible with runtime flutter-native on macos

Because of the import of dart:mirrors via the import chain package:bean_factory_generator/bean_factory_generator.dartpackage:bean_factory_generator/src/com/aymtools/beanfactory/generator_factory.dartpackage:bean_factory_generator/src/com/aymtools/beanfactory/builder.dartpackage:source_gen/source_gen.dartpackage:source_gen/src/type_checker.dartdart:mirrors

Package not compatible with runtime flutter-native on windows

Because of the import of dart:mirrors via the import chain package:bean_factory_generator/bean_factory_generator.dartpackage:bean_factory_generator/src/com/aymtools/beanfactory/generator_factory.dartpackage:bean_factory_generator/src/com/aymtools/beanfactory/builder.dartpackage:source_gen/source_gen.dartpackage:source_gen/src/type_checker.dartdart:mirrors

Package not compatible with runtime flutter-web on web

Because of the import of dart:io via the import chain package:bean_factory_generator/bean_factory_generator.dartpackage:bean_factory_generator/src/com/aymtools/beanfactory/generator_factory.dartpackage:bean_factory_generator/src/com/aymtools/beanfactory/builder.dartpackage:source_gen/source_gen.dartpackage:source_gen/src/utils.dartpackage:build/build.dartpackage:build/src/generate/run_post_process_builder.dartpackage:build/src/builder/post_process_builder.dartpackage:build/src/builder/builder.dartpackage:build/src/builder/build_step.dartpackage:build/src/asset/reader.dartpackage:glob/glob.dartpackage:glob/src/list_tree.dartpackage:glob/src/io.dartpackage:glob/src/io_export.dartdart:io

Package not compatible with runtime native-aot

Because of the import of dart:mirrors via the import chain package:bean_factory_generator/bean_factory_generator.dartpackage:bean_factory_generator/src/com/aymtools/beanfactory/generator_factory.dartpackage:bean_factory_generator/src/com/aymtools/beanfactory/builder.dartpackage:source_gen/source_gen.dartpackage:source_gen/src/type_checker.dartdart:mirrors

Package not compatible with runtime web

Because of the import of dart:io via the import chain package:bean_factory_generator/bean_factory_generator.dartpackage:bean_factory_generator/src/com/aymtools/beanfactory/generator_factory.dartpackage:bean_factory_generator/src/com/aymtools/beanfactory/builder.dartpackage:source_gen/source_gen.dartpackage:source_gen/src/utils.dartpackage:build/build.dartpackage:build/src/generate/run_post_process_builder.dartpackage:build/src/builder/post_process_builder.dartpackage:build/src/builder/builder.dartpackage:build/src/builder/build_step.dartpackage:build/src/asset/reader.dartpackage:glob/glob.dartpackage:glob/src/list_tree.dartpackage:glob/src/io.dartpackage:glob/src/io_export.dartdart:io

Health issues and suggestions

Document public APIs. (-0.81 points)

160 out of 161 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.

Fix lib/src/com/aymtools/beanfactory/entities.dart. (-8.17 points)

Analysis of lib/src/com/aymtools/beanfactory/entities.dart reported 17 hints, including:

line 4 col 8: Unused import: 'package:bean_factory_generator/bean_factory_generator.dart'.

line 14 col 10: Don't explicitly initialize variables to null.

line 26 col 10: Don't explicitly initialize variables to null.

line 36 col 7: Don't explicitly initialize variables to null.

line 44 col 7: Don't explicitly initialize variables to null.

Fix lib/src/com/aymtools/beanfactory/builder.dart. (-4.89 points)

Analysis of lib/src/com/aymtools/beanfactory/builder.dart reported 10 hints, including:

line 6 col 8: Unused import: 'package:analyzer/dart/element/type.dart'.

line 9 col 8: Unused import: 'package:bean_factory_generator/src/com/aymtools/beanfactory/generator.dart'.

line 15 col 8: Unused import: 'generator_bean.dart'.

line 16 col 8: Unused import: 'generator_bean_creator.dart'.

line 17 col 8: Unused import: 'generator_export_lib.dart'.

Fix lib/src/com/aymtools/beanfactory/writer.dart. (-4.41 points)

Analysis of lib/src/com/aymtools/beanfactory/writer.dart reported 9 hints, including:

line 8 col 23: Use lowercase_with_underscores when specifying a library prefix.

line 14 col 8: Don't explicitly initialize variables to null.

line 287 col 9: Use isEmpty instead of length

line 357 col 14: The declaration '_generateBeanSwitchConstructorCheckNumParamsInstance' isn't referenced.

line 567 col 7: Use isEmpty instead of length

Fix lib/src/com/aymtools/beanfactory/scanner.dart. (-2.48 points)

Analysis of lib/src/com/aymtools/beanfactory/scanner.dart reported 5 hints:

line 57 col 5: DO use curly braces for all flow control structures.

line 108 col 5: DO use curly braces for all flow control structures.

line 211 col 7: Use isEmpty instead of length

line 340 col 1: Prefer using /// for doc comments.

line 360 col 32: Unnecessary new keyword.

Fix lib/src/com/aymtools/beanfactory/constants.dart. (-1.49 points)

Analysis of lib/src/com/aymtools/beanfactory/constants.dart reported 3 hints:

line 151 col 12: 'isObject' is deprecated and shouldn't be used. Use isDartCoreObject.

line 181 col 5: DO use curly braces for all flow control structures.

line 202 col 7: Use contains instead of indexOf

Maintenance issues and suggestions

Provide a file named CHANGELOG.md. (-20 points)

Changelog entries help developers follow the progress of your package. See the example generated by stagehand.

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 bean_factory_generator.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.5.0 <3.0.0
analyzer >=0.39.5 <0.40.0 0.39.10 0.39.12
bean_factory ^1.2.2 1.2.2
build ^1.2.1 1.3.0
dart_style ^1.3.3 1.3.6
mustache4dart ^3.0.0-dev.1.0 3.0.0-dev.1.0
source_gen ^0.9.5 0.9.5
Transitive dependencies
_fe_analyzer_shared 4.0.0 5.0.0
args 1.6.0
async 2.4.2
build_config 0.4.2
build_daemon 2.1.4
build_resolvers 1.3.9 1.3.10
build_runner 1.10.0
build_runner_core 5.2.0 6.0.0
built_collection 4.3.2
built_value 7.1.0
charcode 1.1.3
checked_yaml 1.0.2
code_builder 3.4.0
collection 1.14.13 1.15.0-nnbd
convert 2.1.1
crypto 2.1.5
csslib 0.16.1
fixnum 0.10.11
glob 1.2.0
graphs 0.2.0
html 0.14.0+3
http_multi_server 2.2.0
http_parser 3.1.4
io 0.3.4
js 0.6.2
json_annotation 3.0.1
logging 0.11.4
matcher 0.12.8
meta 1.2.1
mime 0.9.6+3
node_interop 1.1.1
node_io 1.1.1
package_config 1.9.3
path 1.7.0
pedantic 1.9.1
pool 1.4.0
pub_semver 1.4.4
pubspec_parse 0.1.5
quiver 2.1.3
reflectable 2.2.5
shelf 0.7.7
shelf_web_socket 0.2.3
source_span 1.7.0
stack_trace 1.9.5
stream_channel 2.0.0
stream_transform 1.2.0
string_scanner 1.0.5
term_glyph 1.1.0
timing 0.1.1+2
typed_data 1.2.0 1.3.0-nnbd
watcher 0.9.7+15
web_socket_channel 1.1.0
yaml 2.2.1