pickImage method

  1. @override
Future<XFile?> pickImage({
  1. ImageSource source = ImageSource.gallery,
})
override

Pick a single image.

Define the ImageSource On Android and iOS platforms. While on Desktop and Web this will open a dialog image picker

Implementation

@override
Future<XFile?> pickImage({ImageSource source = ImageSource.gallery}) {
  throw UnimplementedError('Unknown platform');
}