How to generate getters and setters in vscode for flutter?

1,904

Solution 1

I am using Dart Getters And Setters extension to Automatically Generate Getters And Setters.

Solution 2

You can make a model class from this site.

Share:
1,904
Opshanka Prabath
Author by

Opshanka Prabath

Updated on December 31, 2022

Comments

  • Opshanka Prabath
    Opshanka Prabath over 1 year

    Is there any extension or trick to speed up the development process by adding autogenerate getters and setters methods in VSCODE for FLUTTER?

  • Opshanka Prabath
    Opshanka Prabath over 2 years
    Is there a way to create just getters and setters. I do not want a build a model for JSON response.
  • Opshanka Prabath
    Opshanka Prabath over 2 years
    Thank you so much this answer will help me a lot.
  • Opshanka Prabath
    Opshanka Prabath over 2 years
    This also will help me to generate a model. I am new here to flutter and just identified a good way to build a model according to JSON response. Thank for your reply.