rootDirectory property

Future<Directory> rootDirectory

Return root of the "system" partition holding the core Android OS. Always present and mounted read-only.

See: https://developer.android.com/reference/android/os/Environment#getRootDirectory()

Implementation

static Future<Directory> get rootDirectory async {
  assert(_platform.isAndroid);
  return Directory(await _channel.invokeMethod('getRootDirectory') as String);
}