DiagramPropertyScope constructor
DiagramPropertyScope(
- DiagramController controller, {
- DiagramSelection? selection,
- TextRun? typingStyle,
- DiagramTextSelectionFormatter? formatTextSelection,
Reads selection, or the controller's current selection.
typingStyle is the style a mounted editor applies to the next typed
text; formatTextSelection routes run formatting through a mounted
editor.
Implementation
factory DiagramPropertyScope(
DiagramController controller, {
DiagramSelection? selection,
TextRun? typingStyle,
DiagramTextSelectionFormatter? formatTextSelection,
}) => DiagramPropertyScope._(
controller,
typingStyle: typingStyle,
formatTextSelection: formatTextSelection,
).._read(selection);