Challenge class
Represents a liveness detection challenge that the user must complete
Constructors
- Challenge.new(ChallengeType type, {bool isCompleted = false, String? customInstruction})
Properties
- customInstruction → String?
-
Custom instruction text (overrides default)
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- instruction → String
-
Get the instruction text for this challenge
no setter
- isCompleted ↔ bool
-
Whether the challenge has been completed
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → ChallengeType
-
The type of challenge
final
Methods
-
copyWith(
{ChallengeType? type, bool? isCompleted, String? customInstruction}) → Challenge - Create a copy of this challenge with some values replaced
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
getDefaultInstruction(
ChallengeType type) → String - Get the default instruction for a challenge type