Skip to content

Commit

Permalink
Remove deprecated code
Browse files Browse the repository at this point in the history
  • Loading branch information
amitkhairnar44 committed Oct 5, 2022
1 parent b252d7f commit e074a89
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions lib/root_access.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,11 @@ import 'dart:async';

import 'package:flutter/services.dart';

/// Provides a way to get root access.
/// Provides a way to request root access.
class RootAccess {
/// Channel used to communicate to native code.
/// Channel used to communicate with native code.
static const MethodChannel _channel = const MethodChannel('root_access');

@Deprecated("Use requestRootAccess instead")
static Future<bool> get rootAccess async {
final bool access = await _channel.invokeMethod('isAccessGiven');
return access;
}

/// Triggers app to request root access
///
/// If device is not rooted then this will return `false`.
Expand Down

0 comments on commit e074a89

Please sign in to comment.