SearchView class

View of the Users search.

Inheritance
Available extensions

Constructors

SearchView({Key? key, required List<SearchCategory> categories, RxChat? chat, bool selectable = true, bool enabled = true, String? submit, void onPressed(dynamic)?, void onSubmit(List<UserId> ids)?, void onSelected(SearchViewResults? results)?, bool excludeSupports = false})
const

Properties

categories → List<SearchCategory>
SearchCategoryies to search through.
final
chat → RxChat?
RxChat this SearchView is bound to, if any.
final
enabled → bool
Indicator whether the selected items can be submitted, if selectable, or otherwise onPressed may be called.
final
excludeSupports → bool
Indicator whether Config.supportIds should be excluded from the list.
final
hashCode → int
The hash code for this object.
no setterinherited
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onPressed → void Function(dynamic)?
Callback, called when a searched item is pressed.
final
onSelected → void Function(SearchViewResults? results)?
Callback, called on the selected items changes.
final
onSubmit → void Function(List<UserId> ids)?
Callback, called when the submit button is pressed.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
selectable → bool
Indicator whether the searched items are selectable.
final
submit → String?
Label of the submit button.
final

Methods

animate({Key? key, List<Effect>? effects, AnimateCallback? onInit, AnimateCallback? onPlay, AnimateCallback? onComplete, bool? autoPlay, Duration? delay, AnimationController? controller, Adapter? adapter, double? target, double? value}) → Animate

Available on Widget, provided by the AnimateWidgetExtensions extension

Wraps the target Widget in an Animate instance, and returns the instance for chaining calls. Ex. myWidget.animate() is equivalent to Animate(child: myWidget).
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, 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