Updating documentation to use isEmpty check. (#2955)
The value returned is never null. This is already done correclty in the
example app.
Co-authored-by: Dan Field <dnfield@google.com>
diff --git a/packages/image_picker/image_picker/CHANGELOG.md b/packages/image_picker/image_picker/CHANGELOG.md
index 1973142..07447db 100644
--- a/packages/image_picker/image_picker/CHANGELOG.md
+++ b/packages/image_picker/image_picker/CHANGELOG.md
@@ -1,3 +1,7 @@
+## 0.6.7+7
+
+* Updating documentation to use isEmpty check.
+
## 0.6.7+6
* Update package:e2e -> package:integration_test
diff --git a/packages/image_picker/image_picker/README.md b/packages/image_picker/image_picker/README.md
index 1c9503c..71d20ea 100755
--- a/packages/image_picker/image_picker/README.md
+++ b/packages/image_picker/image_picker/README.md
@@ -77,7 +77,7 @@
Future<void> retrieveLostData() async {
final LostData response =
await picker.getLostData();
- if (response == null) {
+ if (response.isEmpty) {
return;
}
if (response.file != null) {
diff --git a/packages/image_picker/image_picker/pubspec.yaml b/packages/image_picker/image_picker/pubspec.yaml
index 118faf3..91338f1 100755
--- a/packages/image_picker/image_picker/pubspec.yaml
+++ b/packages/image_picker/image_picker/pubspec.yaml
@@ -2,7 +2,7 @@
description: Flutter plugin for selecting images from the Android and iOS image
library, and taking new pictures with the camera.
homepage: https://github.com/flutter/plugins/tree/master/packages/image_picker/image_picker
-version: 0.6.7+6
+version: 0.6.7+7
flutter:
plugin: