ClipboardExporter class
Utility for exporting annotations and copying them to the system clipboard.
Constructors
- ClipboardExporter({AnnotationMarkdownEncoder markdownEncoder = const AnnotationMarkdownEncoder(), AnnotationJsonEncoder jsonEncoder = const AnnotationJsonEncoder(), AgentationFormatAdapter formatAdapter = const AgentationFormatAdapter(), FeedbackContextBuilder feedbackBuilder = const FeedbackContextBuilder()})
-
const
Properties
- feedbackBuilder → FeedbackContextBuilder
-
final
- formatAdapter → AgentationFormatAdapter
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- jsonEncoder → AnnotationJsonEncoder
-
final
- markdownEncoder → AnnotationMarkdownEncoder
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyToClipboard(
List< Annotation> annotations, {ExportFormat format = ExportFormat.markdown, OutputDetailLevel detailLevel = OutputDetailLevel.standard, bool prettyJson = true, String? pathname, String? appName, Size? viewport, String? platform, double? devicePixelRatio, String? url, String? userAgent, DateTime? timestamp}) → Future<String?> - Copies formatted annotations to the system clipboard. Returns the text copied, or null if copying failed.
-
formatAnnotations(
List< Annotation> annotations, {ExportFormat format = ExportFormat.feedback, OutputDetailLevel detailLevel = OutputDetailLevel.standard, bool prettyJson = true, String? pathname, String? appName, Size? viewport, String? platform, double? devicePixelRatio, String? url, String? userAgent, DateTime? timestamp}) → String -
Formats the given
annotationsinto the requestedformat. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited