takePhoto abstract method

Future<XFile?> takePhoto({
  1. ImagePickerCameraDelegateOptions options = const ImagePickerCameraDelegateOptions(),
})

Takes a photo with the given options and returns an XFile to the resulting image file.

Returns null if the photo could not be taken, or the user cancelled.

Implementation

Future<XFile?> takePhoto({
  ImagePickerCameraDelegateOptions options =
      const ImagePickerCameraDelegateOptions(),
});