Skip to content

Instantly share code, notes, and snippets.

@reedom
Created January 23, 2021 08:16
Show Gist options
  • Save reedom/eb2b9fef5b36c41585237746f6e9d8d1 to your computer and use it in GitHub Desktop.
Save reedom/eb2b9fef5b36c41585237746f6e9d8d1 to your computer and use it in GitHub Desktop.
[Flutter/Freezed] faster code generation for projects having filename convention
# 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