Snippet class
A snippet object representing an excerpt from a larger corpus.
Constructors
- Snippet({ElementsImage? imagePreview, String? text})
- Snippet.fromJson(Map json_)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- imagePreview ↔ ElementsImage?
-
Image preview of the snippet provided as an input when creating the
citation.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- text ↔ String?
-
A short plaintext excerpt directly from the corpus that is rendered in the
citation hover card or source preview.
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.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited