AccessReport class final
A detailed access result returned by HardwareAccess.
Constructors
-
AccessReport(AccessStatus status, {List<
String> missing = const [], bool canOpenSettings = false, String? hint}) -
Creates an access report.
const
Properties
- canOpenSettings → bool
-
Whether the user must enable access in the system settings page.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hint → String?
-
Optional developer-facing explanation, for example that a web prompt
must be triggered from a user gesture.
final
- isUsable → bool
-
Whether the device can be used now.
no setter
-
missing
→ List<
String> -
Platform permission names that are still missing, for example
android.permission.CAMERA. Empty when nothing is missing.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → AccessStatus
-
The overall access status.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited