fromFileSync static method

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

Implementation

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