This repository was archived by the owner on Feb 22, 2023. It is now read-only.
File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
## [ 0.2.1] - 2017-05-11
2
2
3
- * Add function to determine external storage directory
3
+ * Add function to determine external storage directory.
4
4
5
5
## [ 0.2.0] - 2017-05-10
6
6
Original file line number Diff line number Diff line change @@ -45,13 +45,13 @@ const _channel = const MethodChannel('plugins.flutter.io/path_provider');
45
45
/// The current operating system should be determined before issuing this
46
46
/// function call, as this functionality is only available on Android.
47
47
///
48
- /// On iOS, this function throws an UnimplementedError as it is not possible
48
+ /// On iOS, this function throws an UnsupportedError as it is not possible
49
49
/// to access outside the app's sandbox.
50
50
///
51
51
/// On Android this returns getExternalStorageDirectory.
52
52
Future <Directory > getExternalStorageDirectory () async {
53
- if (Platform .operatingSystem == "ios" )
54
- throw new UnimplementedError ("Functionality not available on iOS" );
53
+ if (Platform .isIOS )
54
+ throw new UnsupportedError ("Functionality not available on iOS" );
55
55
final String path = await _channel.invokeMethod ('getStorageDirectory' );
56
56
if (path == null )
57
57
return null ;
You can’t perform that action at this time.
0 commit comments