Padlock<C> class abstract

Represents an in-game padlock that should be unlocked in order for the user to complete an action.

Implementers
Available Extensions

Constructors

Padlock({String? title = kDefaultPadlockTitle, String? unlockMessage = kDefaultPadlockUnlockMessage, String? failedToUnlockMessage = kDefaultFailedToUnlockMessage, HintBuilder? hintBuilder})
Creates a new Padlock instance.

Properties

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

Methods

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

Operators

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