isRooted static method

Future<bool> isRooted()

True when rooted (Android) or jailbroken (iOS); always false on desktop and web.

Implementation

static Future<bool> isRooted() async => (await UDevice.integrity()).rooted;