capturePhoto method
Captures a photo using the device camera.
Platform implementations should override this method to handle camera capture on their respective platforms.
Implementation
@override
Future<PickedFile?> capturePhoto({
required bool allowCompression,
required int compressionQuality,
required bool withData,
}) async {
throw UnsupportedError(
'Web implementation is not supported on this platform',
);
}