Skip to content

Commit abdcf1f

Browse files
committed
chore: remove outdated TODOs
1 parent e2e1202 commit abdcf1f

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,7 @@ final bool isRegistered = ImagePickerPlatform.instance is NativeImagePickerMacOS
8787
**To checks if the current macOS version supports this implementation**:
8888

8989
```dart
90-
<!-- TODO: Make this instance method? -->
91-
final bool isSupported = await NativeImagePickerMacOS().isSupported(); // Returns false on non-macOS platforms or if PHPicker is not supported on the current macOS version.
90+
final bool isSupported = await NativeImagePickerMacOS.isSupported(); // Returns false on non-macOS platforms or if PHPicker is not supported on the current macOS version.
9291
```
9392

9493
**To switch between `image_picker_macos` and `native_image_picker_macos` implementations**:

lib/native_image_picker_macos.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,12 @@ class NativeImagePickerMacOS extends CameraDelegatingImagePickerPlatform {
5757
static bool isRegistered() =>
5858
ImagePickerPlatform.instance is NativeImagePickerMacOS;
5959

60-
// TODO(EchoEllet): Might rename those APIs, change them, or make them non-static (registerWithIfSupported, isSupported, isRegistered).
6160
/// Returns whether the this implementation is supported on the current
6261
/// target platform.
6362
///
6463
/// This implementation is supported on macOS 13 Ventura and higher.
6564
static Future<bool> isSupported() async {
6665
if (defaultTargetPlatform == TargetPlatform.macOS && !kIsWeb) {
67-
// TODO(EchoEllet): Duplicated (_hostApi.supportsPHPicker()) in supportsPHPicker
6866
if (await _hostApi.supportsPHPicker()) {
6967
return true;
7068
}

0 commit comments

Comments
 (0)