ZefyrMode class

Controls level of interactions allowed by Zefyr editor.

Constructors

ZefyrMode({@required bool canEdit, @required bool canSelect, @required bool canFormat})
Creates new mode which describes allowed interactions in Zefyr editor.
const

Properties

canEdit bool
Returns true if user is allowed to change text in a document.
final
canFormat bool
Returns true if user is allowed to change formatting styles in a document.
final
canSelect bool
Returns true if user is allowed to select a range of text in a document.
final
hashCode int
The hash code for this object. [...]
read-only, override
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
override

Operators

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

Constants

edit → const ZefyrMode
Editing mode provides full access to all editing features: keyboard, editor toolbar with formatting tools, selection controls and selection toolbar with clipboard tools. [...]
ZefyrMode(canEdit: true, canSelect: true, canFormat: true)
select → const ZefyrMode
Select-only mode allows users to select a range of text and have access to selection toolbar including clipboard tools, any custom actions registered by current text selection controls implementation. [...]
ZefyrMode(canEdit: false, canSelect: true, canFormat: true)
view → const ZefyrMode
View-only mode disables almost all user interactions except the ability to launch links in a web browser when tapped.
ZefyrMode(canEdit: false, canSelect: false, canFormat: false)