isRooted method

Future<bool> isRooted()

Check if device is rooted (Android)

Implementation

Future<bool> isRooted() async {
  try {
    return await _runInBackground(() async {
      return await UltraSecureFlutterKitPlatform.instance.isRooted();
    });
  } catch (e) {
    print('Root detection failed: $e');
    return false;
  }
}