TextLineDecorationLayerBinding constructor
TextLineDecorationLayerBinding({
- required TextAreaController controller,
- required String layerKey,
- required TextLineDecorationLayerBuilder buildDecorations,
- int priority = textDefaultLineDecorationLayerPriority,
- bool syncImmediately = true,
Implementation
TextLineDecorationLayerBinding({
required TextAreaController controller,
required this.layerKey,
required TextLineDecorationLayerBuilder buildDecorations,
this.priority = textDefaultLineDecorationLayerPriority,
bool syncImmediately = true,
}) : _controller = controller,
_buildDecorations = buildDecorations {
_controller.addListener(_handleControllerChanged);
if (syncImmediately) {
sync(force: true);
}
}