getPicturesPath method

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

Implementation

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