SearchButtonMode enum

Represents the search mode. Live is for changing a list live and transactional is for submitting a search to perhaps open a screen or launch something.

Inheritance
Available extensions

Values

live → const SearchButtonMode

When the search is submitted, the search box will simply unfocus, when the user closes the search box, null will be sent to onSearch. This ensures the onSearch matches the live query where null means there is no searching.

  • An empty string means the search box is open but empty / trimmed
  • A non-empty string means the search box is open and has a query
  • null means the search box is closed
transactional → const SearchButtonMode

When the search is submitted, the search box will be closed. onSearch will never send nulls, only search changes.

  • Empty strings are ignored and wont send an event

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<SearchButtonMode>
A constant List of the values in this enum, in order of their declaration.