GuardoConfig class
Configuration options for Guardo authentication
Constructors
- GuardoConfig.new({String localizedReason = 'Please authenticate to access the app', bool biometricOnly = true, bool stickyAuth = true, Duration? lockTimeout, bool autoCheckOnStart = true, AuthenticationOptions authenticationOptions = const AuthenticationOptions(biometricOnly: true, stickyAuth: true)})
-
const
Properties
- authenticationOptions → AuthenticationOptions
-
Authentication options for biometric authentication
final
- autoCheckOnStart → bool
-
Whether to automatically check authentication when app opens
If false, shows lock screen with unlock button
final
- biometricOnly → bool
-
Whether to use biometrics only (no PIN/password fallback)
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- localizedReason → String
-
The reason displayed to the user when requesting authentication
final
- lockTimeout → Duration?
-
Duration after which the app will automatically lock due to inactivity
Set to null to disable automatic locking
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stickyAuth → bool
-
Whether to keep the authentication session active
final
Methods
-
buildDefaultLockScreen(
BuildContext context, VoidCallback onTap) → Widget - Builds the default lock screen widget
-
copyWith(
{String? localizedReason, AuthenticationOptions? authenticationOptions, bool? biometricOnly, bool? stickyAuth, Duration? lockTimeout, bool? autoCheckOnStart}) → GuardoConfig - Creates a copy of this configuration with optional overrides
-
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.
override