getDCIMPath method

  1. @override
Future<String?> getDCIMPath()
override

Implementation

@override
Future<String?> getDCIMPath() async {
  try {
    if (!Platform.isAndroid) throw _unsupportedPlatformException();
    return await methodChannel.invokeMethod<String>('getDCIMPath');
  } on PlatformException catch (e) {
    debugPrint('Error getting DCIM path: ${e.message}');
    return null;
  }
}