InputFile.fromBytes constructor

InputFile.fromBytes(
  1. Uint8List bytes, {
  2. String? name,
  3. String? mimeType,
  4. Map<String, List<String>>? headers,
})

Creates a new InputFile using the bytes of the file.

Implementation

factory InputFile.fromBytes(
  Uint8List bytes, {
  String? name,
  String? mimeType,
  Map<String, List<String>>? headers,
}) =>
    InputFile._(
      bytes: bytes,
      name: name,
      mimeType: mimeType,
      headers: headers,
    );