You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
For arrays and maps, the dataType property currently holds the complete definition of the container, as in:
List<ModelType>
Map<ModelType>
There is a property for the container type (baseType), but there's no property for the type itself: ModelType
Describe the solution you'd like
Add a new property in the generator, specifically when dealing with containers, that holds the generic type of the list/map. I propose to call it baseDataType.
Additional context
This is needed for Dart, as an example, when generating code for the constructors.
classAClass {
AClass({
this.prop =const<AnotherClass>[], // this line cannot be created today.
});
finalList<AnotherClass> prop;
}
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
For arrays and maps, the
dataType
property currently holds the complete definition of the container, as in:List<ModelType>
Map<ModelType>
There is a property for the container type (
baseType
), but there's no property for the type itself:ModelType
Describe the solution you'd like
Add a new property in the generator, specifically when dealing with containers, that holds the generic type of the list/map. I propose to call it
baseDataType
.Additional context
This is needed for Dart, as an example, when generating code for the constructors.
The text was updated successfully, but these errors were encountered: