GlassPinField constructor
- Key? key,
- int length = 6,
- TextEditingController? controller,
- FocusNode? focusNode,
- ValueChanged<
String> ? onChanged, - ValueChanged<
String> ? onCompleted, - bool obscure = false,
- bool error = false,
- bool enabled = true,
- bool autofocus = false,
- bool digitsOnly = true,
- TextInputType? keyboardType,
- double boxWidth = 44,
- double boxHeight = 52,
- double spacing = 8,
- String? semanticLabel,
Creates a code field; length must be positive.
Implementation
const GlassPinField({
super.key,
this.length = 6,
this.controller,
this.focusNode,
this.onChanged,
this.onCompleted,
this.obscure = false,
this.error = false,
this.enabled = true,
this.autofocus = false,
this.digitsOnly = true,
this.keyboardType,
this.boxWidth = 44,
this.boxHeight = 52,
this.spacing = 8,
this.semanticLabel,
}) : assert(length > 0);