SearchInfo class

A data class to store search information

totalHits indicates the quantity of matches for the given text.

Constructors

SearchInfo({int? totalHits, String? suggestion, String? suggestionsnippet})
const
SearchInfo.fromJson(String source)
factory
SearchInfo.fromMap(Map<String, dynamic> map)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
suggestion String?
final
suggestionsnippet String?
final
totalHits int?
final

Methods

copyWith({int? totalHits, String? suggestion, String? suggestionsnippet}) SearchInfo
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() String
toMap() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited