This extension allows you to generate dart getter file quickly and easily. Simply select the class you want to generate getter files for, choose the type of getter you want to create, and let the extension handle the rest.
Main Menu
When you run Command+Shift + P, there will be 2 options
Generate getter with the grouped getter. It allows you to have more than 1 getter group.
You need to name the group of getter so, the generated file and code will be like this
After you select the getter type, the file structure will be like this. It will be saved on the 'getter' dir in the same parent directory.
Add "ignore" section to getter_file_template.yaml
Remove Direct Getter feature
Add new command "Create Getter File Template YAML" to make custom auto import as template when creating getter file. se Notes
Update screenshot and placeholder
Update incorrect documentation that may have led to misunderstandings
~Initial release of Dart Getter Generation. (Ilmu padi 🌾, Menyala abangku 🔥) This first version supports creating getter based on 2 ways (Direct and Grouped). It hasn't supported auto-import by YAML file (Will be developed for the next update)
- Auto-merge the grouped getter without destroying the current generated code
Source code available on GitHub. LinkedIn Ferdian Gunawan.
Enjoy!