You can either install it from vscode or from the following link:
https://marketplace.visualstudio.com/items?itemName=PeterHdd.dartgettersetter
This vscode extension will automatically create the getters and setters for the fields in the dart file.
Select the fields you want, right click and click on Generate Getter And Setter:
String _name;
int _age;
String get name => this._name;
set name(String value) => this._name = value;
int get age => this._age;
set age(int value) => this._age = value;
Support the repository by joining the stargazers for this repo โญ
If you found this extension helpful and want to thank me, consider buying me a cup of โ