quicktype icon indicating copy to clipboard operation
quicktype copied to clipboard

Required doesnt want an @anymore

Open crovax124 opened this issue 3 years ago • 1 comments

When converting to Dart and use "Make all properties required" it does add an @ infront of required. That isnt used anymore in Dart and Flutter.

crovax124 avatar Apr 28 '22 11:04 crovax124

To help, currently it creates the following for Dart conversion:

CustomCodeValue({
        @required this.codeValue,
        @required this.display,
        @required this.codeSet,
        @required this.codeValueId,
    });

Should be:

    CustomCodeValue({
        required this.codeValue,
        required this.display,
        required this.codeSet,
        required this.codeValueId,
    });

duncan-health avatar Jun 03 '22 02:06 duncan-health

Duplicate of #1755

NatoBoram avatar Nov 14 '22 16:11 NatoBoram