DiagramPropertyScope constructor

DiagramPropertyScope(
  1. DiagramController controller, {
  2. DiagramSelection? selection,
  3. TextRun? typingStyle,
  4. 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);