DraftModeUIDropDownScreen<ItemType> class
Shared picker content surface used by DraftModeUIDropDown.
The screen owns only the selectable list presentation. It intentionally stays separate from the inline field and route-push logic so each file has a single responsibility inside the drop-down feature. iOS presents this as a pushed page, while Android reuses the same list semantics inside a bottom sheet.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- DraftModeUIDropDownScreen
Constructors
-
DraftModeUIDropDownScreen({required String pageTitle, required List<
ItemType> items, required Widget itemBuilder(ItemType item, bool isSelected), Widget? emptyPlaceholder, Widget? header, Widget? separator, Future<void> onRefresh()?, EdgeInsetsGeometry? padding, ItemType? selectedItem, Object? selectedKey, Object? itemKeyOf(ItemType item)?, Key? key}) -
const
Properties
- emptyPlaceholder → Widget?
-
Widget shown when items is empty.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- header → Widget?
-
Optional leading content rendered above the first row in the picker list.
final
- itemBuilder → Widget Function(ItemType item, bool isSelected)
-
Builds the widget for a single item.
final
- itemKeyOf → Object? Function(ItemType item)?
-
Maps an item to a stable logical key used for picker selection.
final
-
items
→ List<
ItemType> -
Options rendered in the picker list.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
-
onRefresh
→ Future<
void> Function()? -
When non-null, the picker list supports pull-to-refresh.
final
- padding → EdgeInsetsGeometry?
-
Padding applied around the picker list view.
final
- pageTitle → String
-
Title displayed in the navigation bar.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectedItem → ItemType?
-
Currently selected item highlighted in the picker list.
final
- selectedKey → Object?
-
Stable selection key used together with itemKeyOf.
final
- separator → Widget?
-
Custom divider between rows in the picker list.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< DraftModeUIDropDownScreen< ItemType> > -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setItem(
BuildContext context, ItemType item) → void -
Pops the current picker route with the selected
item. -
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited