FormlessOptionsSheetArgs class
Arguments passed when Formless opens a multiple-choice sheet picker
(long lists or QuestionOptionsPresentation.searchableSheet).
Call select with the chosen option string when the user confirms a pick.
For a custom sheet you typically pop your route before or after select.
Constructors
-
FormlessOptionsSheetArgs({required BuildContext context, required List<
String> options, required String title, required String questionKey, required void select(String value), FormlessTheme? theme}) -
const
Properties
- context → BuildContext
-
Context used to show the modal (e.g.
showModalBottomSheet).final - hashCode → int
-
The hash code for this object.
no setterinherited
-
options
→ List<
String> -
Normalized choice strings for this step (same order as in the question).
final
- questionKey → String
-
The question's
keyfor the step whose options are shown.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- select → void Function(String value)
-
Submit this value as the user’s answer for the current step.
final
- theme → FormlessTheme?
-
Theme from the host when one was passed to
FormlessorChatLayout.final - title → String
-
Title for the picker (from the question's
optionsSheetTitleor default).final
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