FlarkResourceSession class

A bounded editing request created by the host. All methods become inert when its target changes, the editor disappears, or the presentation closes.

Constructors

FlarkResourceSession({required bool image, required InlineResource? resource, required String selectedText, required bool isActive(), required bool apply(FlarkCommand), void onOpen()?})

Properties

active → bool
no setter
destination → String
no setter
destinationField → String
no setter
formTitle → String
What the host's form is editing. Both hosts render these rather than deriving them, so a terminal form cannot end up calling an image a link.
no setter
hashCode → int
The hash code for this object.
no setterinherited
image → bool
final
label → String
no setter
labelField → String
no setter
onOpen → void Function()?
no setter
resource → InlineResource?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
selectedText → String
final
title → String
no setter
titleField → String
no setter

Methods

close() → void
End the request without changing the document.
failureFor(String destination) → String
Why save or remove refused, for the host to show.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
open() → void
remove() → bool
save({required String destination, required String label, String title = ''}) → bool
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited