File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
templates/dart/lib/services Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ class {{ service.name | caseUcfirst }} extends Service {
1616{{ method .description | dartComment }}
1717 ///
1818{% endif %}
19- {% if method .type == ' webAuth' %}Future{% elseif method .type == ' location' %} Future<Uint8List > {% else %} {% if method .responseModel and method .responseModel != ' any' %}Future<models .{{method .responseModel | ucFirstAndEscape }}>{% else %}Future{% endif %}{% endif %} {{ method .name | caseCamel }}({{ _self.method_parameters (method .parameters ) }}) async {
19+ {% if method .type == ' webAuth' %}Future{% elseif 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 ) }}) async {
2020 final String path = '{{ method .path }}'{% for parameter in method .parameters .path %}.replaceAll('{{ ' {' }}{{ parameter .name | caseCamel }}{{ ' }' }}', {{ parameter .name | caseCamel | escapeKeyword }}){% endfor %};
2121
2222 final Map<String , dynamic > params = {
You can’t perform that action at this time.
0 commit comments