getScreenshotsPath method

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

Implementation

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