ToggleTextAttributionsCommand class

Applies the given attributions to the given documentSelection, if none of the content in the selection contains any of the given attributions. Otherwise, all the given attributions are removed from the content within the documentSelection.

Inheritance

Constructors

ToggleTextAttributionsCommand({required DocumentRange documentRange, required Set<Attribution> attributions})

Properties

attributions Set<Attribution>
final
documentRange DocumentRange
final
hashCode int
The hash code for this object.
no setterinherited
historyBehavior HistoryBehavior
The desired "undo" behavior of this command.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

describe() String
inherited
execute(EditContext context, CommandExecutor executor) → void
Executes this command and logs all changes with the executor.
override
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