Skip to content

Commit

Permalink
fix: import io if List<File>
Browse files Browse the repository at this point in the history
  • Loading branch information
schigabiga committed Dec 8, 2023
1 parent 42a2be6 commit 19692f9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ String _toClientRequest(UniversalRequest request, String defaultContentType) {
String _fileImport(UniversalRestClient restClient) => restClient.requests.any(
(r) => r.parameters.any(
(e) =>
e.type.toSuitableType(ProgrammingLanguage.dart).startsWith('File'),
e.type.toSuitableType(ProgrammingLanguage.dart).startsWith('File') || e.type.toSuitableType(ProgrammingLanguage.dart).startsWith('List<File'),
),
)
? "import 'dart:io';\n\n"
Expand Down

0 comments on commit 19692f9

Please sign in to comment.