pickImage static method

Future<PickedFile?> pickImage()

Implementation

static Future<PickedFile?> pickImage() async {
  if (Platform.isAndroid) {
    return _getFilesFromMethodChannel(type: "image");
  }
  return await _getFilesFromMethodChannel(
      type: Platform.isIOS ? "image" : "custom",
      allowedExtensions: imageExtensions + videoExtensions);
}