Highlight class

Highlight describes an area that specifically matches a search query.

Annotations
  • @freezed

Constructors

Highlight({required String field, required String text})
Default Constructor
const
factory
Highlight.fromJson(Map<String, dynamic> json)
Unmarshalls from json to Highlight
factory

Properties

copyWith → $HighlightCopyWith<Highlight>
no setterinherited
field String
Field is the name of the field.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String
Text is the highlighted text.
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