pushToViewer method
Implementation
Future<AssetEntity?> pushToViewer({
required XFile file,
required CameraPickerViewType viewType,
}) async {
if (viewType == CameraPickerViewType.image) {
await precacheImage(FileImage(File(file.path)), context);
}
return CameraPickerViewer.pushToViewer(
context,
pickerConfig: pickerConfig,
viewType: viewType,
previewXFile: file,
);
}