TsaiPinInput constructor
const
TsaiPinInput({
- Key? key,
- TextEditingController? controller,
- String? initialValue,
- int length = 4,
- FocusNode? focusNode,
- bool enabled = true,
- bool autofocus = false,
- bool isError = false,
- bool isSuccess = false,
- ValueChanged<
String> ? onChanged, - ValueChanged<
String> ? onCompleted, - ValueChanged<
String> ? onSubmitted, - ValueChanged<
bool> ? onFocusChange, - String semanticLabel = 'PIN',
Creates a Tsai PIN input.
Implementation
const TsaiPinInput({
super.key,
this.controller,
this.initialValue,
this.length = 4,
this.focusNode,
this.enabled = true,
this.autofocus = false,
this.isError = false,
this.isSuccess = false,
this.onChanged,
this.onCompleted,
this.onSubmitted,
this.onFocusChange,
this.semanticLabel = 'PIN',
}) : assert(controller == null || initialValue == null),
assert(length > 0),
assert(!isError || !isSuccess);