EditContext class

All resources that are available when executing EditCommands, such as a document, composer, etc.

Available extensions

Constructors

EditContext(Map<String, Editable> _resources)

Properties

composer MutableDocumentComposer

Available on EditContext, provided by the StandardEditablesInContext extension

Finds and returns the MutableDocumentComposer within the EditContext.
no setter
document MutableDocument

Available on EditContext, provided by the StandardEditablesInContext extension

Finds and returns the MutableDocument within the EditContext.
no setter
hashCode int
The hash code for this object.
no setterinherited
maybeComposer MutableDocumentComposer?

Available on EditContext, provided by the StandardEditablesInContext extension

Finds and returns the MutableDocumentComposer within the EditContext, or null if no MutableDocumentComposer is in the EditContext.
no setter
maybeDocument MutableDocument?

Available on EditContext, provided by the StandardEditablesInContext extension

Finds and returns the MutableDocument within the EditContext, or null if no MutableDocument is in the EditContext.
no setter
patternTagIndex PatternTagIndex

Available on EditContext, provided by the PatternTagIndexEditable extension

Returns the PatternTagIndex that the PatternTagPlugin added to the attached Editor.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stableTagIndex StableTagIndex

Available on EditContext, provided by the StableTagIndexEditable extension

Returns the StableTagIndex that the StableTagPlugin added to the attached Editor.
no setter

Methods

find<T extends Editable>(String id) → T
Finds an object of type T within this EditContext, which is identified by the given id.
findMaybe<T extends Editable>(String id) → T?
Finds an object of type T within this EditContext, which is identified by the given id, or returns null if no such object is in this EditContext.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
put(String id, Editable editable) → void
Makes the given editable available as a resource under the given id.
remove(String id, [Editable? editable]) → void
Removes the given editable resource in this context with the given id.
toString() String
A string representation of this object.
inherited

Operators

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