StreamAutocompleteTrigger class

The class responsible for triggering autocomplete suggestions and displaying the options.

Constructors

StreamAutocompleteTrigger({required String trigger, required StreamAutocompleteOptionsViewBuilder optionsViewBuilder, bool triggerOnlyAfterSpace = false, bool triggerOnlyAtStart = false, int minimumRequiredCharacters = 0})
Creates a StreamAutocompleteTrigger which can be used to trigger autocomplete suggestions.
const

Properties

hashCode int
The hash code for this object.
no setteroverride
minimumRequiredCharacters int
The minimum required characters for the trigger to start recognising a autocomplete options.
final
optionsViewBuilder StreamAutocompleteOptionsViewBuilder
Builds the widget responsible for querying and displaying the autocomplete options.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
trigger String
The trigger character.
final
triggerOnlyAfterSpace bool
Whether the trigger should only be recognised after a space.
final
triggerOnlyAtStart bool
Whether the trigger should only be recognised at the start of the input.
final

Methods

invokingTrigger(Message message, TextEditingValue textEditingValue) StreamAutocompleteQuery?
Checks if the user is invoking the recognising trigger and returns the autocomplete query if so.
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.
override