Create a class with properties. Hit CTRL + P to open the command dialog. Search for Dart Data Class Generator: Generate from class properties and hit enter . When there are multiple classes in the current file, choose the ones you’d like to create data classes of in the dialog.