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, ornullif 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, ornullif 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
Twithin this EditContext, which is identified by the givenid. -
findMaybe<
T extends Editable> (String id) → T? -
Finds an object of type
Twithin this EditContext, which is identified by the givenid, or returnsnullif 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
editableavailable as a resource under the givenid. -
remove(
String id, [Editable? editable]) → void -
Removes the given
editableresource in this context with the givenid. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited