Create exports with build runner

Usage

Add package to dev_dependencies

dev_dependencies:
  build_runner: 
  dart_exporter: {version}

Config

add export configs to pubspec.yaml

dart_exporter:
  ingore_if_path_matched:
    - .g.dart
    - .gen.dart
  use_export_annotation: true
  #false (default): export all items, use @DoNotExport() annotation to hide
  #true: hide all items, use @Export() annotation to show
dart pub run build_runner build

Libraries

dart_exporter