FleatherController class

Available Extensions


FleatherController({ParchmentDocument? document, AutoFormats? autoFormats})


document ParchmentDocument
Document managed by this controller.
hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
Whether any listeners are currently registered.
no setterinherited
plainTextEditingValue TextEditingValue
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selection TextSelection
Currently selected text within the document.
no setter
toggledStyles ParchmentStyle
Store any styles attribute that got toggled by the tap of a button and that has not been applied yet. It gets reset after each format action within the document.
no setter


addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
compose(Delta change, {TextSelection? selection, ChangeSource source = ChangeSource.remote, bool forceUpdateSelection = false}) → void
Composes change into document managed by this controller.
dispose() → void
Discards any resources used by the object. After this is called, the object is not in a usable state and should be discarded (calls to addListener will throw after the object is disposed).
formatSelection(ParchmentAttribute attribute) → void
Formats current selection with attribute.
formatText(int index, int length, ParchmentAttribute attribute) → void
getSelectionStyle() ParchmentStyle
Returns style of specified text range.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
notifyListeners() → void
Call all the registered listeners.
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
replaceText(int index, int length, Object data, {TextSelection? selection}) → void
Replaces length characters in the document starting at index with provided data.
toString() String
A string representation of this object.
updateSelection(TextSelection value, {ChangeSource source = ChangeSource.remote}) → void
Updates selection with specified value.


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