FakeSearchSettings class final

The limits of the search handlers of the fake (brief M4-23 Scope): the configuration values of 14 15 and the list page sizes of 06 6 with their defaults, so a test can lower them.

Example:

server.world.searchSettings
  ..queryMaxChars = 5
  ..maxCandidates = 2;

Constructors

FakeSearchSettings()

Properties

hashCode → int
The hash code for this object.
no setterinherited
listPageSizeDefault ↔ int
api.page_size_default (06 6): items per page of listMyMentions and listActiveRuns without limit.
getter/setter pair
listPageSizeMax ↔ int
api.page_size_max (06 6): a larger limit of those lists is capped, not rejected.
getter/setter pair
maxCandidates ↔ int
search.max_candidates (14 4.5): only the newest this many matches are ranked, and the page reports candidates_capped: true when more matched.
getter/setter pair
pageSizeDefault ↔ int
search.page_size_default (14 4.7): hits per page of search and searchThreadTitles without limit.
getter/setter pair
pageSizeMax ↔ int
search.page_size_max (14 4.7): a larger limit is capped, not rejected.
getter/setter pair
prefixMinChars ↔ int
search.prefix_min_chars (14 4.9): shorter words of a prefix query are dropped.
getter/setter pair
queryMaxChars ↔ int
search.query_max_chars (14 4.1): a longer q answers 400 validation_failed with too_long.
getter/setter pair
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