more_visibility_annotation 0.1.0 copy "more_visibility_annotation: ^0.1.0" to clipboard
more_visibility_annotation: ^0.1.0 copied to clipboard

Annotations for more_visibility package.

Pub CI Dart SDK License: MIT

more_visibility_annotation #

Standalone annotations used by the more_visibility lint package.

What’s inside #

  • @mprotected: declaration/file usable from the same directory and any subdirectories.
  • @mdefault: declaration/file usable only from the same directory.

Usage #

  1. Add dependency:
    dependencies:
      more_visibility_annotation: ^0.1.0
    
  2. Import and annotate:
    import 'package:more_visibility_annotation/more_visibility_annotation.dart';
    
    @mprotected
    class Shared {}
    
    @mdefault
    final local = 0;
    
  3. Enable lints by adding the more_visibility plugin plus custom_lint in your dev dependencies (in your main project).
0
likes
0
points
137
downloads

Publisher

unverified uploader

Weekly Downloads

Annotations for more_visibility package.

Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on more_visibility_annotation