CredentialsPadlock class

A padlock that can be unlocked by providing the correct username and the correct password.

Inheritance
Available Extensions

Constructors

CredentialsPadlock({required String username, required String password, bool caseSensitive = true, String? title = kDefaultPadlockTitle, String? unlockMessage = kDefaultPadlockUnlockMessage, String? failedToUnlockMessage = kDefaultFailedToUnlockMessage, HintBuilder? hintBuilder})
Creates a new CredentialsPadlock instance.

Properties

caseSensitive bool
Whether the username and the password are case sensitive.
final
failedToUnlockMessage String?
The message displayed when the user fails to unlock this padlock.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
hintBuilder HintBuilder?
The padlock hint.
finalinherited
isLocked bool
Returns whether this padlock is locked.
no setterinherited
isUnlocked bool
Returns whether this padlock is unlocked.
no setterinherited
password String
The password to provide.
final
props List<Object?>
The properties list.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
title String?
The padlock title.
finalinherited
unlockMessage String?
The message displayed when the user tries to unlock this padlock.
finalinherited
username String
The username to provide.
final

Methods

isObjectValid(List<String> object) bool
Returns whether the given object is valid.
override
lock() → void
Locks this padlock.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
tryUnlock(List<String> code) bool
Tries to unlock the current padlock with the specified code.
inherited
unlock() → void
Unlocks this padlock.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited