getRootDirectory static method
Equivalent to android's Environment.getRootDirectory().getPath(). Return root of the "system" partition holding the core Android OS
Implementation
static Future<String?> getRootDirectory() async {
if (!Platform.isAndroid) throw UnsupportedError("Only Works in Android");
return await _channel.invokeMethod(_getRootDirectory);
}