Update DartRenderer.ts by jessicamrbr · Pull Request #2720 · glideapps/quicktype
| ".map[", | ||
| dynamic, | ||
| this._options.nullSafety ? "]!" : "]", | ||
| (this._options.nullSafety && !isNullable) ? "]!" : "]" |
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| (this._options.nullSafety && !isNullable) ? "]!" : "]" | |
| (this._options.nullSafety && !enumType.isNullable && !isNullable)? "]!" : "]", |
In my tests, this is the code that worked
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested on my project and it works
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters