fromFileSync static method

MultipartFile fromFileSync(
  1. String filePath, {
  2. String? filename,
  3. MediaType? contentType,
  4. Map<String, List<String>>? headers,
})

Implementation

static MultipartFile fromFileSync(
  String filePath, {
  String? filename,
  MediaType? contentType,
  final Map<String, List<String>>? headers,
}) =>
    multipartFileFromPathSync(
      filePath,
      filename: filename,
      contentType: contentType,
      headers: headers,
    );