ZefyrController class

Controls instance of ZefyrEditor.

Inheritance

Constructors

ZefyrController(NotusDocument document)

Properties

document NotusDocument
Zefyr document managed by this controller.
final
hashCode int
The hash code for this object. [...]
read-only, inherited
hasListeners bool
Whether any listeners are currently registered. [...]
@protected, read-only, inherited
lastChangeSource ChangeSource
Source of the last text or selection change.
read-only
plainTextEditingValue TextEditingValue
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
selection TextSelection
Currently selected text within the document.
read-only
toggledStyles NotusStyle
Store any styles attribute that got toggled by the tap of a button and that has not been applied yet. It gets reseted after each format action within the document.
read-only

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes. [...]
inherited
compose(Delta change, {TextSelection selection, ChangeSource source = ChangeSource.remote}) → 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 and removeListener will throw after the object is disposed). [...]
override
formatSelection(NotusAttribute attribute) → void
Formats current selection with attribute.
formatText(int index, int length, NotusAttribute attribute) → void
getSelectionStyle() NotusStyle
Returns style of specified text range. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
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. [...]
inherited
replaceText(int index, int length, String text, {TextSelection selection}) → void
Replaces length characters in the document starting at index with provided text. [...]
toString() String
A string representation of this object. [...]
inherited
updateSelection(TextSelection value, {ChangeSource source = ChangeSource.remote}) → void
Updates selection with specified value. [...]

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited