SearchResultItem class
Represents a single found search result item.
- Annotations
-
- @freezed
Constructors
- SearchResultItem({required SearchResultContext context, required SearchResultItemType type, required SearchResultItemPageType pageType, required int score, required String title, String? subtitle, required String uri})
-
constfactory
-
SearchResultItem.fromJson(Map<
String, dynamic> json) -
factory
Properties
- context → SearchResultContext
-
Context of the result
no setterinherited
-
copyWith
→ $SearchResultItemCopyWith<
SearchResultItem> -
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- pageType → SearchResultItemPageType
-
Type of the page
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- score → int
-
Search score based on text similarity
no setterinherited
- subtitle → String?
-
Subtitle of the result item
no setterinherited
- title → String
-
Title of the result item
no setterinherited
- type → SearchResultItemType
-
Type of the result item
no setterinherited
- uri → String
-
Navigable URI of the result
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited