title: ImagePicker.platform shows warning - Flutter
body: <p>I am using the following code to pick an image from user's gallery.<br/></p>
  <pre><code>Future getImageFromGallery(BuildContext context) async {
      await ImagePicker.platform()
          .pickImage(source: ImageSource.gallery)
          .then((image) {
        if (image != null) {
          _cropImage(image, context);
        }
      });
    }
  </code></pre>
  <p>I am getting the following warning.</p>
  <pre><code>The member 'platform' can only be used within 'package:image_picker/image_picker.dart' or a test.
  </code></pre>
  <p>I'm not sure what the warning means. I tried looking it up but couldn't figure out the solution to resolve this warning.</p>