isEditable property

bool isEditable
final

Whether this scope is backed by editable Zefyr widgets or read-only view.

Returns true if this scope provides Zefyr interface that allows editing (e.g. created by ZefyrEditor). Returns false if this scope provides read-only view (e.g. created by ZefyrView).

Editable scope provides access to corresponding controller, focusNode, focusScope, showCursor, renderContext and other shared objects. For non-editable scopes these are set to null. You can still access objects which are not dependent on editing flow, e.g. imageDelegate.

Implementation

final bool isEditable;