DeviceCheck class
Check whether the device is safe, Available checks,
- Root => isRooted
- Developer Mode => isDeveloperModeEnabled
- Emulator => isEmulator
- App installed on external storage => isInstalledOnExternalStorage
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
isDeveloperModeEnabled
→ Future<
bool> -
Check if the device has developer mode enabled (only Android)
no setter
-
isEmulator
→ Future<
bool> -
Check if the app is run on an emulator/simulator
no setter
-
isInstalledOnExternalStorage
→ Future<
bool> -
Check if the app is installed on an external storage (only Android)
no setter
-
isRooted
→ Future<
bool> -
Check if the device is rooted/jailbroken
no setter
-
platformVersion
→ Future<
String> -
Check the device platorm and version
no setter