builder_static_text: ^0.0.1+2 copied to clipboard
Simple way to add some static text into generated source files.
A simple way to add static text to generated source files (
The only reason for it's existence is that
- json_serialize does not produce code valid for strong mode implicity-dynamic: false https://github.com/dart-lang/json_serializable/issues/247
- analysis_options.yml exclude does not work correctly https://github.com/dart-lang/linter/issues/320 https://github.com/dart-lang/sdk/issues/34069
- source_gen does not provide a header/footer option on it's own https://github.com/dart-lang/source_gen/issues/370
Getting Started #
dev_dependency: builder_static_text: ^0.0.1
build.yaml and configure the builder:
targets: $default: builders: builder_static_text|static_text: generate_for: - lib/**/*.dart options: content: '// ignore_for_file: strong_mode_implicit_dynamic_parameter'