reflective 0.0.29

  • readme.md
  • Installing
  • Versions
  • 44

Dart Reflective

Build Status

Reflective is fluent reflection API for Dart.

Examples:

TypeReflection typeOfEmployeeName = type(Employee).field('name').type;

Employee employee = type(Employee).construct(
    name: 'John Doe', 
    email: 'john@doe.org');

1. Depend on it

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


dependencies:
  reflective: "^0.0.29"

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:reflective/reflective.dart';
        
Version Uploaded Documentation Archive
0.0.29 Jul 25, 2016 Go to the documentation of reflective 0.0.29 Download reflective 0.0.29 archive
0.0.28 May 30, 2016 Go to the documentation of reflective 0.0.28 Download reflective 0.0.28 archive
0.0.27 May 30, 2016 Go to the documentation of reflective 0.0.27 Download reflective 0.0.27 archive
0.0.26 Mar 27, 2016 Go to the documentation of reflective 0.0.26 Download reflective 0.0.26 archive
0.0.25 Mar 26, 2016 Go to the documentation of reflective 0.0.25 Download reflective 0.0.25 archive
0.0.24 Dec 14, 2015 Go to the documentation of reflective 0.0.24 Download reflective 0.0.24 archive
0.0.23 Dec 2, 2015 Go to the documentation of reflective 0.0.23 Download reflective 0.0.23 archive
0.0.22 Dec 2, 2015 Go to the documentation of reflective 0.0.22 Download reflective 0.0.22 archive
0.0.21 Dec 2, 2015 Go to the documentation of reflective 0.0.21 Download reflective 0.0.21 archive
0.0.20 Dec 2, 2015 Go to the documentation of reflective 0.0.20 Download reflective 0.0.20 archive

All 29 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]
23 / 100
Health:
Code health derived from static analysis. [more]
95 / 100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
23 / 100
Overall score:
Weighted score of the above. [more]
44
Learn more about scoring.

Platforms

Detected platforms: web, other

Primary library: package:reflective/reflective.dart with components: mirrors.

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 1 error 13 hints.

    Strong-mode analysis of lib/src/core/field_reflection.dart failed with the following error:

    line: 48 col: 70
    The getter '_symbol' isn't defined for the class 'FieldReflection'.

    Run dartfmt to format lib/reflective.dart.

    Similar analysis of the following files failed:

    • lib/src/convert.dart (hint)
    • lib/src/core.dart (hint)
    • lib/src/core/abstract_reflection.dart (hint)
    • lib/src/core/instance_reflection.dart (hint)
    • lib/src/core/library_reflection.dart (hint)
    • lib/src/core/type_reflection.dart (hint)
    • lib/src/util.dart (hint)
  • 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 reflective.dart.

Dependencies

Package Constraint Resolved Available
Direct dependencies
yaml >=2.1.0 <3.0.0 2.1.13
Transitive dependencies
charcode 1.1.1
path 1.5.1
source_span 1.4.0
string_scanner 1.0.2
Dev dependencies
collection any 1.14.9
test any