RawEditor class

Inheritance

Constructors

RawEditor({Key? key, required FleatherController controller, FocusNode? focusNode, ScrollController? scrollController, bool scrollable = true, EdgeInsetsGeometry padding = EdgeInsets.zero, bool autofocus = false, bool? showCursor, bool readOnly = false, bool autocorrect = true, bool enableSuggestions = true, bool enableInteractiveSelection = true, double? minHeight, double? maxHeight, double? maxContentWidth, bool expands = false, TextCapitalization textCapitalization = TextCapitalization.none, Brightness keyboardAppearance = Brightness.light, ValueChanged<String?>? onLaunchUrl, required Color selectionColor, ScrollPhysics? scrollPhysics, required CursorStyle cursorStyle, required ClipboardManager clipboardManager, bool showSelectionHandles = false, TextSelectionControls? selectionControls, SelectionChangedCallback? onSelectionChanged, FleatherContextMenuBuilder contextMenuBuilder = defaultContextMenuBuilder, SpellCheckConfiguration? spellCheckConfiguration, FleatherEmbedBuilder embedBuilder = defaultFleatherEmbedBuilder, LinkActionPickerDelegate linkActionPickerDelegate = defaultLinkActionPickerDelegate})
const

Properties

autocorrect bool
Whether to enable autocorrection.
final
autofocus bool
Whether this editor should focus itself if nothing else is already focused.
final
clipboardManager ClipboardManager
final
contextMenuBuilder FleatherContextMenuBuilder
Builds the text selection toolbar when requested by the user.
final
controller FleatherController
Controls the document being edited.
final
cursorStyle CursorStyle
The style to be used for the editing cursor.
final
embedBuilder FleatherEmbedBuilder
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 show input suggestions as the user types.
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
linkActionPickerDelegate LinkActionPickerDelegate
final
maxContentWidth double?
The maximum width to be occupied by the content of this editor.
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
onSelectionChanged SelectionChangedCallback?
Called when the user changes the selection of text (including the cursor location).
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
scrollController ScrollController?
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
spellCheckConfiguration SpellCheckConfiguration?
Configuration that details how spell check should be performed.
final
textCapitalization TextCapitalization
Configures how the platform keyboard will select an uppercase or lowercase keyboard.
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