• This project
    • Loading...
  • Sign in

flutter_package / fluttertpc_get

Go to a project
Toggle navigation
  • Projects
  • Groups
  • Snippets
  • Help
Toggle navigation pinning
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • fluttertpc_get
  • lib
  • get_connect
  • http
  • src
  • multipart
  • multipart_file.dart
  • added GetConnect · ed8fa564
    ed8fa564 Browse Files
    Jonatas authored 2020-11-28 02:05:06 -0300
multipart_file.dart 369 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
class MultipartFile {
  final String contentType;

  final Stream<List<int>> _stream;

  final int length;

  final String filename;

  MultipartFile(
    List<int> bytes, {
    this.filename,
    this.contentType = 'application/octet-stream',
  })  : length = bytes.length,
        _stream = Stream.fromIterable([bytes]);

  Stream<List<int>> get stream => _stream;
}