interceptable 0.4.1

  • Readme
  • Changelog
  • Installing
  • 47

Interceptable #

Enable field and method interception support for classes.

0.4.1 #

  • Increase capability

0.4.0+1 #

  • Ensure package import

0.4.0 #

  • Redesign interceptable

0.3.0 #

  • Initial version
  • Older changelog is ignored

Use this package as a library

1. Depend on it

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

  interceptable: ^0.4.1

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

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

  • Dart: 2.7.1
  • pana: 0.13.6

Health issues and suggestions

Document public APIs. (-1 points)

42 out of 42 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/builder/interceptable_collector.dart. (-0.50 points)

Analysis of lib/src/builder/interceptable_collector.dart reported 1 hint:

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

Format lib/src/builder/builder.dart.

Run dartfmt to format lib/src/builder/builder.dart.

Format lib/src/builder/interceptable_cache.dart.

Run dartfmt to format lib/src/builder/interceptable_cache.dart.

Fix additional 5 files with analysis or formatting issues.

Additional issues in the following files:

  • lib/src/builder/interceptable_combiner.dart (Run dartfmt to format lib/src/builder/interceptable_combiner.dart.)
  • lib/src/builder/util/template_utils.dart (Run dartfmt to format lib/src/builder/util/template_utils.dart.)
  • lib/src/runtime/getter_target.dart (Run dartfmt to format lib/src/runtime/getter_target.dart.)
  • lib/src/runtime/interceptable.dart (Run dartfmt to format lib/src/runtime/interceptable.dart.)
  • lib/src/runtime/setter_target.dart (Run dartfmt to format lib/src/runtime/setter_target.dart.)

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

For more information see the pub package layout conventions.

The package description is too short. (-3 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.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.4.0 <3.0.0
build ^1.2.2 1.2.2
crypto ^2.1.3 2.1.4
dart_style ^1.3.2 1.3.4
exporter ^1.0.2 1.0.2
generated_locator ^1.1.0 1.1.0
matchable_builder ^0.4.2+2 0.4.2+2
reflect_metadata ^1.0.0 1.1.0
renderable ^0.4.1 0.4.1
Transitive dependencies
_fe_analyzer_shared 2.1.0
analyzer 0.39.6
args 1.6.0
async 2.4.1
charcode 1.1.3
collection 1.14.12
convert 2.1.1
csslib 0.16.1
glob 1.2.0
html 0.14.0+3
js 0.6.1+1
logging 0.11.4
meta 1.1.8
node_interop 1.0.3
node_io 1.0.1+2
package_config 1.9.3
path 1.6.4
pedantic 1.9.0
pub_semver 1.4.4
source_gen 0.9.5
source_span 1.7.0
string_scanner 1.0.5
term_glyph 1.1.0
typed_data 1.1.6
watcher 0.9.7+14
yaml 2.2.0
Dev dependencies
build_runner any
test ^1.0.0