takePhoto method

  1. @override
Future<AdaptiveFile?> takePhoto(
  1. PickerOptions options
)
override

Captures a photo using the device camera.

Implementation

@override
Future<AdaptiveFile?> takePhoto(PickerOptions options) async {
  // On desktop platforms where a direct system camera modal isn't standard,
  // fallback gracefully to standard file selection.
  final files = await pickImages(options);
  return files.isNotEmpty ? files.first : null;
}