InputPasteFeature class

Adds a paste button to the input field.

Provides a button that pastes content from the clipboard into the input. Useful for improving user experience when entering copied data.

Example:

TextField(
  features: [
    InputPasteFeature(
      position: InputFeaturePosition.trailing,
    ),
  ],
)
Inheritance

Constructors

InputPasteFeature({InputFeatureVisibility visibility = InputFeatureVisibility.always, bool skipFocusTraversal = true, InputFeaturePosition position = InputFeaturePosition.trailing, Widget? icon})
Creates an InputPasteFeature.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
icon Widget?
Custom icon for the paste button.
final
position InputFeaturePosition
Position of the paste button.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
skipFocusTraversal bool
Whether to skip this feature in focus traversal.
finalinherited
visibility InputFeatureVisibility
Visibility mode for this input feature.
finalinherited

Methods

createState() InputFeatureState<InputFeature>
Creates the state for this input feature.
override
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