glideapps / quicktype

Generate types and converters from JSON, Schema, and GraphQL

Home Page:https://app.quicktype.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Required doesnt want an @anymore

crovax124 opened this issue · 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.

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,
    });

Duplicate of #1755