SearchRequest class
- Annotations
Constructors
-
SearchRequest({required String query, required bool useAdvanced, required String author, @Default([]) List<
Format> formats, @Default(20) int limit, @Default(Language.english) Language language, @Default([]) List<Content> contents, @Default(SortOption.mostRelevant) SortOption sort}) -
constfactory
-
SearchRequest.fromJson(Map<
String, Object?> json) -
factory
Properties
-
no setterinherited
-
contents
→ List<
Content> -
no setterinherited
-
copyWith
→ $SearchRequestCopyWith<
SearchRequest> -
Create a copy of SearchRequest
with the given fields replaced by the non-null parameter values.
no setterinherited
-
formats
→ List<
Format> -
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- language → Language
-
no setterinherited
- limit → int
-
no setterinherited
- query → String
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sort → SortOption
-
no setterinherited
- useAdvanced → bool
-
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this SearchRequest to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited