FileInfo.fromFile constructor

FileInfo.fromFile(
  1. {required File? file,
  2. required String? fileName,
  3. required String? mimeType}
)

fromFile

Implementation

FileInfo.fromFile({
  required this.file,
  required this.fileName,
  required this.mimeType,
})  : fileSize = file?.lengthSync(),
      fileBytes = null,
      fileUrl = null;