multipartFileFromUint8List static method

Future<MultipartFile> multipartFileFromUint8List(
  1. String fieldName,
  2. Uint8List bytes, {
  3. String? filename,
  4. MediaType? contentType,
})

Implementation

static Future<MultipartFile> multipartFileFromUint8List(
  String fieldName,
  Uint8List bytes, {
  String? filename,
  MediaType? contentType,
}) async => MultipartFile.fromBytes(fieldName, bytes, contentType: contentType, filename: filename);