AutoFormats class
Registry for AutoFormats.
Constructors
-
AutoFormats({required List<
AutoFormat> autoFormats}) - AutoFormats.fallback()
-
Default set of auto formats.
factory
Properties
- canUndo → bool
-
true
if hasActiveSuggestion and undo delta is not empty;false
otherwiseno setter - hasActiveSuggestion → bool
-
true
if there is an active suggestion;false
otherwiseno setter - hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selection → TextSelection?
-
The selection override of the active formatting suggestion
no setter
- undoPosition → int
-
The position at which the active suggestion can be deactivated
no setter
Methods
-
cancelActive(
) → void - Cancel active suggestion
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
run(
ParchmentDocument document, int position, Object data) → bool -
Perform detection of auto formats and apply changes to
document
. -
toString(
) → String -
A string representation of this object.
inherited
-
undoActive(
ParchmentDocument document) → TextSelection? -
Remove auto format from
document
and de-activate current suggestion.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited