HttpFile.fromBytes constructor

HttpFile.fromBytes(
  1. String field,
  2. List<int> bytes, {
  3. String? filename,
  4. MediaType? contentType,
})

Creates a new HttpFile from a byte array.

Implementation

factory HttpFile.fromBytes(String field, List<int> bytes,
    {String? filename, MediaType? contentType}) {
  return HttpFile._(field,
      bytes: bytes, filename: filename, contentType: contentType);
}