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
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- listPageSizeDefault ↔ int
-
api.page_size_default(06 6): items per page oflistMyMentionsandlistActiveRunswithoutlimit.getter/setter pair - listPageSizeMax ↔ int
-
api.page_size_max(06 6): a largerlimitof 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 reportscandidates_capped: truewhen more matched.getter/setter pair - pageSizeDefault ↔ int
-
search.page_size_default(14 4.7): hits per page ofsearchandsearchThreadTitleswithoutlimit.getter/setter pair - pageSizeMax ↔ int
-
search.page_size_max(14 4.7): a largerlimitis 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 longerqanswers400 validation_failedwithtoo_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