Skip to content

Commit

Permalink
Fix refactoring mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
kuhnroyal committed Jul 24, 2023
1 parent b794745 commit 67fe9e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dio/lib/src/multipart_file.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ class MultipartFile {
'This will be removed in 6.0.0',
)
MultipartFile(
Stream<List<int>>? stream,
Stream<List<int>> stream,
this.length, {
this.filename,
MediaType? contentType,
Map<String, List<String>>? headers,
}) : _data = (() => stream!),
}) : _data = (() => stream),
headers = caseInsensitiveKeyMap(headers),
contentType = contentType ?? MediaType('application', 'octet-stream');

Expand Down

0 comments on commit 67fe9e6

Please sign in to comment.