reflective 0.0.29

  • readme.md
  • Installing
  • Versions
  • 39

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

This feature is new.
We welcome feedback.
More details: scoring.

We analyzed this package, and provided a score, details, and suggestions below.

  • tool failures on Feb 3, 2018
  • Dart: 2.0.0-dev.20.0
  • pana: 0.10.1

Scores

Popularity:
Describes how popular the package is relative to other packages. [more]
7 / 100
Health:
Code health derived from static analysis. [more]
95 / 100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
36 / 100
Overall score:
Weighted score of the above. [more]
39

Platforms

Detected platforms: web, other

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

Suggestions

  • Fix lib/src/core/field_reflection.dart.

    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'.

  • Maintain CHANGELOG.md.

    Changelog entries help clients to follow the progress in your code.

  • Fix issues reported by dartanalyzer.

    dartanalyzer reported 1 error(s) and 0 warning(s).

  • 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.5
test any