FileInfo.fromData constructor

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

Implementation

FileInfo.fromData({
  required this.name,
  required this.file,
  required this.mimeType,
})  : fileSize = file?.lengthSync(),
      url = null;