getInternalCachePath method

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

Implementation

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