ObjectEqualPadlock<T> class
abstract
A Padlock that can be unlocked by providing a specific object.
- Inheritance
- Implementers
- Available Extensions
Constructors
- ObjectEqualPadlock({T? validObject, String? title = kDefaultPadlockTitle, String? unlockMessage = kDefaultPadlockUnlockMessage, String? failedToUnlockMessage = kDefaultFailedToUnlockMessage, HintBuilder? hintBuilder})
- Creates a new ObjectEqualPadlock instance.
Properties
- 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
-
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
Methods
-
isObjectValid(
T object) → bool - Returns whether the given object is valid.
-
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(
T code) → bool -
Tries to unlock the current padlock with the specified
code
.override -
unlock(
) → void -
Unlocks this padlock.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited