InputOTP
Accessible one-time password component with copy paste functionality.
InputFormatters
Using InputFormatters you can restrict the input characters. The example below shows how to restrict the input to only numbers.
See also UpperCaseTextInputFormatter
and LowerCaseTextInputFormatter
which are provided by the package.