BeuiCombobox class

Searchable, grouped picker with a morphing anchored panel.

Compose trigger from BeuiComboboxTrigger and BeuiComboboxInput, and compose content from BeuiComboboxContent, BeuiComboboxList, and BeuiComboboxItem (optionally grouped with BeuiComboboxGroup). Value, open state, and query are independently controlled when their respective arguments are supplied; otherwise each is initialized from its default and managed internally.

Inheritance

Constructors

BeuiCombobox({required Widget trigger, required Widget content, String? value, String? defaultValue, ValueChanged<String>? onValueChange, bool? open, bool defaultOpen = false, ValueChanged<bool>? onOpenChange, String? query, String defaultQuery = '', ValueChanged<String>? onQueryChange, BeuiComboboxFilter filter = beuiComboboxSubsequenceFilter, bool disabled = false, double? width, Key? key})
Creates a searchable combobox.
const

Properties

content → Widget
Portalled content subtree, conventionally BeuiComboboxContent.
final
defaultOpen → bool
Initial visibility for uncontrolled use.
final
defaultQuery → String
Initial search text for uncontrolled use.
final
defaultValue → String?
Initial selected value for uncontrolled use.
final
disabled → bool
Disables interaction.
final
filter → BeuiComboboxFilter
Predicate called with value and label, ...keywords.
final
hashCode → int
The hash code for this object.
no setterinherited
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onOpenChange → ValueChanged<bool>?
Called when requested visibility changes.
final
onQueryChange → ValueChanged<String>?
Called when search text changes.
final
onValueChange → ValueChanged<String>?
Called after an item is selected.
final
open → bool?
Controlled visibility; null enables internal state.
final
query → String?
Controlled search text; null enables internal state.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
trigger → Widget
Trigger subtree, conventionally BeuiComboboxTrigger.
final
value → String?
Controlled selected value; null enables internal state.
final
width → double?
Optional panel width. Defaults to the trigger width.
final

Methods

createElement() → StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → State<BeuiCombobox>
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
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