FileCitationAnnotation class
A file citation annotation.
- Implemented types
- Annotations
-
- @immutable
Constructors
- FileCitationAnnotation({required String text, required FileCitation fileCitation, required int startIndex, required int endIndex})
-
Creates a FileCitationAnnotation.
const
-
FileCitationAnnotation.fromJson(Map<
String, dynamic> json) -
Creates a FileCitationAnnotation from JSON.
factory
Properties
- endIndex → int
-
The end index in the text.
final
- fileCitation → FileCitation
-
The file citation details.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startIndex → int
-
The start index in the text.
final
- text → String
-
The text being annotated.
final
- type → String
-
The type of this annotation.
no setteroverride
Methods
-
copyWith(
{String? text, FileCitation? fileCitation, int? startIndex, int? endIndex}) → FileCitationAnnotation - Creates a copy with the given fields replaced.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Converts to JSON.
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override