WebQuestion class
Constructors
-
WebQuestion({String? language, int? maxSources, String? mode, String? q, List<
String> sources = const []}) - Returns a new WebQuestion instance.
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- language ↔ String?
-
Language narrows the search to a locale, BCP-47-ish ("en", "ja"). Empty means no narrowing.
getter/setter pair
- maxSources ↔ int?
-
MaxSources caps how many pages are read. Empty means the mode's own budget.
getter/setter pair
- mode ↔ String?
-
Mode is how much work to do:
search(fast, one pass),news(recency biased),research(a plan and several rounds) ordeep(the widest survey). Empty means research.getter/setter pair - q ↔ String?
-
Q is the question, in plain language. Required.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
sources
↔ List<
String> -
Sources narrows where the evidence comes from: any of
web,news,academic,github,reddit,x. Each becomes a site-scoped search, so[\"x\"]researches X/Twitter posts rather than the open web.getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
fromJson(
dynamic value) → WebQuestion? -
Returns a new WebQuestion instance and imports its values from
valueif it's a Map, null otherwise. -
listFromJson(
dynamic json, {bool growable = false}) → List< WebQuestion> -
mapFromJson(
dynamic json) → Map< String, WebQuestion> -
mapListFromJson(
dynamic json, {bool growable = false}) → Map< String, List< WebQuestion> >
Constants
-
requiredKeys
→ const Set<
String> - The list of required keys that must be present in a JSON.