SelectableMath constructor
const
SelectableMath({
- Key? key,
- SyntaxTree? ast,
- bool autofocus = false,
- Color? cursorColor,
- Radius? cursorRadius,
- double cursorWidth = 2.0,
- double? cursorHeight,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- bool enableInteractiveSelection = true,
- FocusNode? focusNode,
- MathStyle mathStyle = MathStyle.display,
- double? logicalPpi,
- OnErrorFallback onErrorFallback = defaultOnErrorFallback,
- MathOptions? options,
- ParseException? parseException,
- bool showCursor = false,
- double? textScaleFactor,
- TextSelectionControls? textSelectionControls,
- TextStyle? textStyle,
- ToolbarOptions? toolbarOptions,
SelectableMath default constructor.
Requires either a parsed ast or a parseException.
See SelectableMath for its member documentation.
Implementation
const SelectableMath({
Key? key,
this.ast,
this.autofocus = false,
this.cursorColor,
this.cursorRadius,
this.cursorWidth = 2.0,
this.cursorHeight,
this.dragStartBehavior = DragStartBehavior.start,
this.enableInteractiveSelection = true,
this.focusNode,
this.mathStyle = MathStyle.display,
this.logicalPpi,
this.onErrorFallback = defaultOnErrorFallback,
this.options,
this.parseException,
this.showCursor = false,
this.textScaleFactor,
this.textSelectionControls,
this.textStyle,
ToolbarOptions? toolbarOptions,
}) : assert(ast != null || parseException != null),
toolbarOptions = toolbarOptions ??
const ToolbarOptions(
selectAll: true,
copy: true,
),
super(key: key);