RAutocompleteRemoteQuery class final

Query information passed to remote load callbacks.

Contains normalized query text and metadata for the remote loader. The requestId can be used for correlating requests with responses and for telemetry/debugging.

Example:

RAutocompleteRemoteSource<User>(
  load: (query) async {
    // Use normalized text for API call
    final results = await api.search(query.text);

    // Use rawText for analytics
    analytics.logSearch(query.rawText, query.trigger);

    return results;
  },
)
Annotations

Constructors

RAutocompleteRemoteQuery({required String rawText, required String text, required RAutocompleteRemoteTrigger trigger, required int requestId})
Creates a remote query with the given parameters.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
rawText String
The original text before normalization (for debugging/telemetry).
final
requestId int
Unique ID for this request.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String
The normalized query text (trimmed, etc. per policy).
final
trigger RAutocompleteRemoteTrigger
What triggered this load request.
final

Methods

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

Operators

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