PromptCancelledException class final

The person left the prompt without answering (reason): Ctrl+C, Esc, Ctrl+D, or input ended. What the prompt showed is gone by the time it is thrown, and in the interactive mode ✗ question is committed in its place.

Inheritance

Constructors

PromptCancelledException(String question, PromptCancelReason reason)
question was left for reason.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
question → String
The question that went unanswered, as the prompt was given it.
finalinherited
reason → PromptCancelReason
What ended the prompt.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

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.
inherited