Skip to content

Commit faccb45

Browse files
committed
dart: use super in constructor param
1 parent 2dfc5f7 commit faccb45

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

templates/dart/lib/services/service.dart.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ part of {{ language.params.packageName }};
1111
{{ service.description|dartComment}}
1212
{% endif %}
1313
class {{ service.name | caseUcfirst }} extends Service {
14-
{{ service.name | caseUcfirst }}(Client client{{ _self.service_params(service.globalParams) }}): super(client);
14+
{{ service.name | caseUcfirst }}(super.client{{ _self.service_params(service.globalParams) }});
1515
{% if service.globalParams | length %}
1616
{% for parameter in service.globalParams %}
1717
{{ parameter.type | typeName }}{% if not parameter.required %}?{% endif %} {{ parameter.name | caseCamel | overrideIdentifier }};

templates/flutter/lib/services/service.dart.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ part of {{ language.params.packageName }};
1111
{{ service.description|dartComment}}
1212
{% endif %}
1313
class {{ service.name | caseUcfirst }} extends Service {
14-
{{ service.name | caseUcfirst }}(Client client{{ _self.service_params(service.globalParams) }}): super(client);
14+
{{ service.name | caseUcfirst }}(super.client{{ _self.service_params(service.globalParams) }});
1515
{% if service.globalParams | length %}
1616
{% for parameter in service.globalParams %}
1717
{{ parameter.type | typeName }}{% if not parameter.required %}?{% endif %} {{ parameter.name | caseCamel | overrideIdentifier }};

0 commit comments

Comments
 (0)