more_visibility_annotation 0.1.2
more_visibility_annotation: ^0.1.2 copied to clipboard
Annotations for more_visibility package.
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 #
- Add dependency:
dependencies: more_visibility_annotation: ^0.1.0 - Import and annotate:
import 'package:more_visibility_annotation/more_visibility_annotation.dart'; @mprotected class Shared {} @mdefault final local = 0; - Enable lints by adding the
more_visibilityplugin pluscustom_lintin your dev dependencies (in your main project).
Links #
- Lints + builder: https://pub.dev/packages/more_visibility