This extension currently helps you to easily write freezed
annotated classes and allows you to run code generation for those classes. You can also watch the files so that code generation is faster.
👉 https://marketplace.visualstudio.com/items?itemName=mthuong.vscode-flutter-freezed-helper
In your pubspec.yaml
file add the following libraries in the dev_dependencies
and dependencies
section:
dev_dependencies:
// ...
build_runner:
freezed:
json_serializable:
dependencies:
// ...
freezed_annotation:
json_annotation:
The idea for this extension came from aksharpatel47's extension https://github.com/aksharpatel47/vscode_flutter_helper