requestRootAccess property
Triggers app to request root access
If device is not rooted then this will return false
.
Else it will open installed superuser or similar app's pop up asking for Permission.
Implementation
static Future<bool> get requestRootAccess async {
final bool access = await _channel.invokeMethod('isAccessGiven');
return access;
}