SearchMultiselectField class final

A custom SearchMultiselectField widget that provides a search bar with specific styling for use in multi-select fields.

This widget is designed to handle search input in a multi-select context, allowing users to type and filter options. It includes mobile-specific adjustments for better usability on smaller screens.

The textController parameter manages the text input in the search bar. The isMobile parameter adjusts the height of the search bar based on the device type. The onTap parameter is a callback that triggers when the search bar is tapped. The onChange parameter handles the changes in the search input. The focusNodeTextField parameter manages the focus state of the search bar.

Example usage:

SearchMultiselectField(
  textController: myTextController,
  isMobile: true,
  onTap: () {
    // Handle tap
  },
  focusNodeTextField: myFocusNode,
  onChange: (value) {
    // Handle text change
  },
)
Inheritance
Annotations

Constructors

SearchMultiselectField({Key? key, required TextEditingController textController, required bool isMobile, required void onTap(), required FocusNode focusNodeTextField, required void onChange(String value)})
Creates a SearchMultiselectField widget.
const

Properties

focusNodeTextField FocusNode
Manages the focus state of the search bar.
final
hashCode int
The hash code for this object.
no setterinherited
isMobile bool
Indicates whether the device is mobile, adjusting the height of the search bar.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onChange → void Function(String value)
Callback function that handles changes in the search input.
final
onTap → void Function()
Callback function triggered when the search bar is tapped.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textController TextEditingController
Controls the text being edited in the search bar.
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
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}) 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