getInternalStoragePath method

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

Implementation

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