Fix issue #68 which casting failed from Future<Map<dynamic, dynamic>?> to FutureOr<Map<dynamic, dynamic>>
Fix issue upload large file, the file stream stops before uploading complete. For example, I upload 80Mb file, but receive only 2MB on server. I fixed it by read bytes until end of stream.
Revert commit 9537b1403614cdb76ef14481f964f27490b67e7a from @jonataslaw which cause build error because missing item, or @jonataslaw needs to do something to fix it, then I can merge into my branch.
There are 3 things on this pull request:
Future<Map<dynamic, dynamic>?>
toFutureOr<Map<dynamic, dynamic>>
item
, or @jonataslaw needs to do something to fix it, then I can merge into my branch.