A new Flutter package that allows you to auto export types globally.
This package is a fork version of auto_export package.
Thank you Alberto Monteiro for your repository.
To use auto export feature, you just need to add the @export
annotation to your class that you want to be automatically exported in the lib/auto_export.dart
file.
Then in your other files, you just need to import the auto_export.dart
file to have access to all auto exported files
- Add
@export
annotation to your class
/// don't forget to import this package
import 'package:files_exporter/files_exporter.dart';
@export
class MyExportedClass {
// ...
}
- In your terminal, run the following command
$ dart run build_runner build