getRootInstallationPath method

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

Implementation

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