TextLineDecorationLayerBinding class final

Keeps one named whole-line decoration layer in sync with a text controller.

Constructors

TextLineDecorationLayerBinding({required TextAreaController controller, required String layerKey, required TextLineDecorationLayerBuilder buildDecorations, int priority = textDefaultLineDecorationLayerPriority, bool syncImmediately = true})

Properties

controller TextAreaController
The controller currently synced by this binding.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
layerKey String
Named layer updated by this binding.
final
priority int
Priority used when applying decorations to layerKey.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clear() → void
Clears the managed whole-line decoration layer.
dispose() → void
Detaches the binding from its controller.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sync({bool force = false}) → void
Recomputes whole-line decorations from the controller's current text.
toString() String
A string representation of this object.
inherited

Operators

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