AutoFormat class abstract

An AutoFormat is responsible for looking backwards for a pattern and applying a formatting suggestion to a document.

For example, identifying a link and automatically wrapping it with a link attribute or applying block formats using Markdown shortcuts

TODO: adapt to support changes made by a remote source

Constructors

AutoFormat()
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

apply(ParchmentDocument document, int position, String data) AutoFormatResult?
Upon insertion of a trigger character, run format detection and apply formatting to document
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