RawEditor class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- RawEditor
Constructors
-
RawEditor({Key? key, required ZefyrController controller, required FocusNode focusNode, ClipboardController? clipboardController, ScrollController? scrollController, bool scrollable = true, EdgeInsetsGeometry padding = EdgeInsets.zero, bool autofocus = false, bool? showCursor, bool readOnly = false, bool enableInteractiveSelection = true, double? minHeight, double? maxHeight, double? scrollAreaMinHeight, bool expands = false, TextCapitalization textCapitalization = TextCapitalization.none, Brightness keyboardAppearance = Brightness.light, ValueChanged<
String> ? onLaunchUrl, required Color selectionColor, ScrollPhysics? scrollPhysics, ToolbarOptions toolbarOptions = const ToolbarOptions(copy: true, cut: true, paste: true, selectAll: true), bool enableSuggestions = true, CursorStyle? cursorStyle, bool showSelectionHandles = false, TextSelectionControls? selectionControls, ZefyrEmbedBuilder embedBuilder = defaultZefyrEmbedBuilder})
Properties
- autofocus → bool
-
Whether this editor should focus itself if nothing else is already
focused.
final
- clipboardController → ClipboardController?
-
Controls whether this editor interacts with clipboard.
final
- controller → ZefyrController
-
Controls the document being edited.
final
- cursorStyle → CursorStyle?
-
The style to be used for the editing cursor.
final
- embedBuilder → ZefyrEmbedBuilder
-
Builder function for embeddable objects.
final
- enableInteractiveSelection → bool
-
If true, then long-pressing this TextField will select text and show the
cut/copy/paste menu, and tapping will move the text caret.
final
- enableSuggestions → bool
-
Whether to enable text suggestions in the keyboard when typing.
final
- expands → bool
-
Whether this widget's height will be sized to fill its parent.
final
- focusNode → FocusNode
-
Controls whether this editor has keyboard focus.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- keyboardAppearance → Brightness
-
The appearance of the keyboard.
final
- maxHeight → double?
-
The maximum height this editor can have.
final
- minHeight → double?
-
The minimum height this editor can have.
final
-
onLaunchUrl
→ ValueChanged<
String> ? -
Callback which is triggered when the user wants to open a URL from
a link in the document.
final
- padding → EdgeInsetsGeometry
-
Additional space around the editor contents.
final
- readOnly → bool
-
Whether the text can be changed.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollable → bool
-
final
- scrollAreaMinHeight → double?
-
The minimum height this editor can scroll.
final
- scrollController → ScrollController?
-
Controls whether this editor is scrolling vertically.
final
- scrollPhysics → ScrollPhysics?
-
The ScrollPhysics to use when vertically scrolling the input.
final
- selectionColor → Color
-
The color to use when painting the selection.
final
- selectionControls → TextSelectionControls?
-
Optional delegate for building the text selection handles and toolbar.
final
- selectionEnabled → bool
-
no setter
- showCursor → bool
-
Whether to show cursor.
final
- showSelectionHandles → bool
-
Whether to show selection handles.
final
- textCapitalization → TextCapitalization
-
Configures how the platform keyboard will select an uppercase or
lowercase keyboard.
final
- toolbarOptions → ToolbarOptions
-
Configuration of toolbar options.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< RawEditor> -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited