isRootAvailable method
Whether this device exposes a usable su binary.
Different from a successfully started root server: this is a pre-flight check that never prompts for authorization.
Implementation
@override
Future<bool> isRootAvailable() async =>
await methodChannel.invokeMethod<bool>('isRootAvailable') ?? false;