JidoujishoTextSelectionControls class

Defined on SelectableText objects to allow for a custom action when selecting text.

Inheritance

Constructors

JidoujishoTextSelectionControls({required dynamic stashAction(String), required dynamic shareAction(String), required bool allowCopy, required bool allowCut, required bool allowPaste, required bool allowSelectAll, dynamic searchAction(String)?, Color? handleColor, dynamic creatorAction(String)?, dynamic sentenceAction(JidoujishoTextSelection)?})
Define text selection controls with custom behaviour.

Properties

allowCopy bool
Whether or not to allow copying.
final
allowCut bool
Whether or not to allow cutting.
final
allowPaste bool
Whether or not to allow pasting.
final
allowSelectAll bool
Whether or not to allow selecting all.
final
creatorAction → (dynamic Function(String)?)
Behaviour for the creator action.
final
handleColor Color?
Allows the text handles to be customized.
final
hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
searchAction → (dynamic Function(String)?)
Behaviour for the search action.
final
sentenceAction → (dynamic Function(JidoujishoTextSelection)?)
Behaviour for the creator action.
final
shareAction → dynamic Function(String)
Behaviour for the share action.
final
stashAction → dynamic Function(String)
Behaviour for the stash action.
final

Methods

buildHandle(BuildContext context, TextSelectionHandleType type, double textHeight, [VoidCallback? onTap]) Widget
Builder for material-style text selection handles.
override
buildToolbar(BuildContext context, Rect globalEditableRegion, double textLineHeight, Offset selectionMidpoint, List<TextSelectionPoint> endpoints, TextSelectionDelegate delegate, ClipboardStatusNotifier? clipboardStatus, Offset? lastSecondaryTapDownPosition) Widget
Builder for material-style copy/paste text selection toolbar.
override
canCopy(TextSelectionDelegate delegate) bool
Whether the current selection of the text field managed by the given delegate can be copied to the Clipboard.
inherited
canCut(TextSelectionDelegate delegate) bool
Whether the current selection of the text field managed by the given delegate can be removed from the text field and placed into the Clipboard.
inherited
canPaste(TextSelectionDelegate delegate) bool
Whether the text field managed by the given delegate supports pasting from the clipboard.
inherited
canSelectAll(TextSelectionDelegate delegate) bool
Whether the current selection of the text field managed by the given delegate can be extended to include the entire content of the text field.
inherited
getHandleAnchor(TextSelectionHandleType type, double textLineHeight) Offset
Gets anchor for material-style text selection handles.
override
getHandleSize(double textLineHeight) Size
Returns the size of the Material handle.
override
handleCopy(TextSelectionDelegate delegate, [ClipboardStatusNotifier? clipboardStatus]) → void
Call TextSelectionDelegate.copySelection to copy current selection.
inherited
handleCut(TextSelectionDelegate delegate, [ClipboardStatusNotifier? clipboardStatus]) → void
Call TextSelectionDelegate.cutSelection to cut current selection.
inherited
handlePaste(TextSelectionDelegate delegate) Future<void>
Call TextSelectionDelegate.pasteText to paste text.
inherited
handleSelectAll(TextSelectionDelegate delegate) → void
Call TextSelectionDelegate.selectAll to set the current selection to contain the entire text value.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited