getExternalCachePath method

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

Implementation

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