Skip to content

Commit 90fc737

Browse files
committed
fix spacing
1 parent 0fca8e1 commit 90fc737

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,19 @@ part of {{ language.params.packageName }};
88
{% endmacro %}
99

1010
{%if service.description %}
11-
{{ service.description|dartComment}}
11+
{{- service.description|dartComment}}
1212
{% endif %}
1313
class {{ service.name | caseUcfirst }} extends Service {
1414
{{ service.name | caseUcfirst }}(super.client);
1515

1616
{% for method in service.methods %}
1717
/// {{ method.title }}
18-
{% if method.description %}
18+
{%~ if method.description %}
1919
///
2020
{{ method.description | dartComment }}
2121
///
2222
{% endif %}
23-
{% if method.type == 'location' %} Future<Uint8List> {% else %} {% if method.responseModel and method.responseModel != 'any' %}Future<models.{{method.responseModel | caseUcfirst | overrideIdentifier}}>{% else %}Future{% endif %}{% endif %} {{ method.name | caseCamel }}({{ _self.method_parameters(method.parameters.all, method.consumes) }}) async {
23+
{% if method.type == 'location' %}Future<Uint8List>{% else %}{% if method.responseModel and method.responseModel != 'any' %}Future<models.{{method.responseModel | caseUcfirst | overrideIdentifier}}>{% else %}Future{% endif %}{% endif %} {{ method.name | caseCamel }}({{ _self.method_parameters(method.parameters.all, method.consumes) }}) async {
2424
final String path = '{{ method.path }}'{% for parameter in method.parameters.path %}.replaceAll('{{ '{' }}{{ parameter.name | caseCamel }}{{ '}' }}', {{ parameter.name | caseCamel | overrideIdentifier }}){% endfor %};
2525

2626
{% if 'multipart/form-data' in method.consumes %}

0 commit comments

Comments
 (0)