StubPermissionGuard class
A lightweight Dart-only implementation used on Web and desktop platforms where native permission flows are not implemented. Returns conservative default values so apps can handle missing support gracefully.
- Inheritance
-
- Object
- PlatformInterface
- PermissionGuardPlatform
- StubPermissionGuard
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
-
getPlatformVersion(
) → Future< String?> -
Returns the platform/version string provided by the platform implementation.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
openAppSettings(
) → Future< bool> -
Opens the app settings screen. Returns true if the call was successful.
override
-
requestPermission(
String permission) → Future< String?> -
Requests the given
permissionfrom the platform and returns a platform-specific status string (e.g. 'granted', 'denied', 'permanentlyDenied').override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited