fromFileSync method Null safety

MultipartFile fromFileSync(
  1. String filePath,
  2. {String? filename,
  3. MediaType? contentType}
)

Implementation

static MultipartFile fromFileSync(
  String filePath, {
  String? filename,
  MediaType? contentType,
}) =>
    multipartFileFromPathSync(
      filePath,
      filename: filename,
      contentType: contentType,
    );