Created
January 23, 2021 08:16
-
-
Save reedom/eb2b9fef5b36c41585237746f6e9d8d1 to your computer and use it in GitHub Desktop.
[Flutter/Freezed] faster code generation for projects having filename convention
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# In convention, our project names `xxx_state.dart` for StateNotifier's state files | |
# and we only use Freezed in them. So, we can: | |
gen: | |
flutter pub run build_runner build --delete-conflicting-outputs \ | |
--build-filter="lib/**/*_state.freezed.dart" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment