isDeviceRooted method

  1. @override
Future<bool> isDeviceRooted()
override

Implementation

@override
Future<bool> isDeviceRooted() async {
  try {
    final result = await _channel.invokeMethod('isDeviceRooted');
    return result;
  } on PlatformException catch (_) {
    throw UnimplementedError();
  } catch (e) {
    return false;
  }
}