TextFieldPassthroughAdapter

A default adapter that validates TextFieldState.text as CharSequence.

This adapter extracts the text content from TextFieldState for validation while maintaining the TextFieldState for UI interaction. It's the simplest adapter that allows direct text validation without type conversion.

This is the default adapter used when no explicit adapter is provided to a TextFieldState-based form field.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun fromInput(value: TextFieldState, current: TextFieldState): TextFieldState

Converts the input/display value back to the stored value type.

Link copied to clipboard
open override fun toInput(value: TextFieldState): TextFieldState

Converts the stored value to the input/display type.

Link copied to clipboard

Converts the stored value to the validation target type.