DDSSearch class

Inheritance

Constructors

DDSSearch.new({Key? key, SearchShape shape = SearchShape.rounded, SearchShape floatingSearchBarOpenShape = SearchShape.rectangle, SearchShape floatingSearchBarCloseShape = SearchShape.rounded, SearchVariant variant = SearchVariant.floating, Color? startIconBackgroundColor = Colors.transparent, Widget? floatingButtonCollapsedIcon, required List<Map<String, String>> items, String initialFilter = 'All', dynamic onSearch(String query, String filter)?, dynamic onItemSelected(Map<String, String> item)?, Widget? endIcon, bool isExpanded = false, dynamic onSearchToggle()?, dynamic onIconClick()?, String placeholder = 'placeholder', required List<String> filters, Color backgroundColor = Colors.white, Color? searchBarColor = Colors.white, bool showStartIcon = false, InputDecoration? inputDecoration, Color iconColor = Colors.white, TextStyle hintStyle = const TextStyle(color: Colors.grey), double? height = 50, double? width = 358, BorderRadius? borderRadius, void onExpandedChanged(bool)?, Widget? startIcon, bool autofocus = false, EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: 5, vertical: 5), TextStyle? dropdownItemTextStyle, TextStyle? dropdownSelectedItemTextStyle, Color? dropdownMenuBackgroundColor, Color? filterMenuBackgroundColor, double? filterMenuWidth, TextStyle? searchResultTitleStyle, double? dropdownMaxHeight = 200, double? startIconWidth = 52, TextStyle? searchResultSubtitleStyle, Color borderColor = Colors.grey, Color dropdownBorderColor = Colors.grey, dynamic onStartIconTap()?, dynamic onEndIconTap()?, dynamic onCollapsedIconTap()?, BorderRadius? floatingBorderRadius, TextStyle? inputTextStyle, SearchBarOpenDirection openDirection = SearchBarOpenDirection.leftToRight, double cursorWidth = 2.0, double? cursorHeight, Radius? cursorRadius, bool? cursorOpacityAnimates, Color? cursorColor, Color? cursorErrorColor, bool? showCursor, Color? collapsedIconBorderColor, bool enableCustomSelection = false, Widget? customSelectionHandleWidget, Color? selectionHandleColor, Color? textSelectionColor, TextEditingController? controller, TextInputAction? textInputAction, ValueChanged<String>? onSubmitted})

Properties

autofocus bool
final
backgroundColor Color
final
borderColor Color
final
borderRadius BorderRadius?
final
collapsedIconBorderColor Color?
final
controller TextEditingController?
final
cursorColor Color?
final
cursorErrorColor Color?
final
cursorHeight double?
final
cursorOpacityAnimates bool?
final
cursorRadius Radius?
final
cursorWidth double
final
customSelectionHandleWidget Widget?
final
final
final
final
final
final
enableCustomSelection bool
final
endIcon Widget?
final
filterMenuBackgroundColor Color?
final
filterMenuWidth double?
final
filters List<String>
final
floatingBorderRadius BorderRadius?
final
floatingButtonCollapsedIcon Widget?
final
floatingSearchBarCloseShape SearchShape
final
floatingSearchBarOpenShape SearchShape
final
hashCode int
The hash code for this object.
no setterinherited
height double?
final
hintStyle TextStyle
final
iconColor Color
final
initialFilter String
final
inputDecoration InputDecoration?
final
inputTextStyle TextStyle?
final
isExpanded bool
final
items List<Map<String, String>>
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onCollapsedIconTap → dynamic Function()?
final
onEndIconTap → dynamic Function()?
final
onExpandedChanged → void Function(bool)?
final
onIconClick → dynamic Function()?
final
onItemSelected → dynamic Function(Map<String, String> item)?
final
onSearch → dynamic Function(String query, String filter)?
final
onSearchToggle → dynamic Function()?
final
onStartIconTap → dynamic Function()?
final
onSubmitted ValueChanged<String>?
final
openDirection SearchBarOpenDirection
final
padding EdgeInsetsGeometry
final
placeholder String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
searchBarColor Color?
final
searchResultSubtitleStyle TextStyle?
final
searchResultTitleStyle TextStyle?
final
selectionHandleColor Color?
final
shape SearchShape
final
showCursor bool?
final
showStartIcon bool
final
startIcon Widget?
final
startIconBackgroundColor Color?
final
startIconWidth double?
final
textInputAction TextInputAction?
final
textSelectionColor Color?
final
variant SearchVariant
final
width double?
final

Methods

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