InlineCitation class final
A citation marker such as [1], [1, 2] or [^1], as emitted by
models that cite sources.
Rendered as its source text unless the app supplies a citation builder or tap callback.
Constructors
-
InlineCitation(List<
String> labels, {String? source}) -
Creates a citation.
sourcedefaults to[labels joined by ", "].const
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
-
labels
→ List<
String> -
The cited labels, in order and without
^:[1, 2]gives['1', '2'].final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- source → String
-
The marker as written, such as
[1,2]or[^note].no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override