AskQuestion class final

One structured question for the host's AskCallback.

Constructors

AskQuestion({required String question, List<AskOption> options = const [], bool multiSelect = false, int? recommended})
Creates a question. An empty options list marks a free-form question (the host shows a text field only).
const

Properties

hashCode int
The hash code for this object.
no setterinherited
multiSelect bool
Whether the user may select several options.
final
options List<AskOption>
The picker options; empty for a free-form answer.
final
question String
The question text shown to the user.
final
The 0-based index of the recommended option (the host renders a "Recommended" badge), or null when none was given or the given index/label did not resolve.
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.
inherited

Operators

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