FOtpFieldManagedControl constructor
const
FOtpFieldManagedControl({
- FOtpController? controller,
- List<
Widget> children = const [FOtpItem(), FOtpItem(), FOtpItem(), FOtpItem(), FOtpItem(), FOtpItem()], - TextEditingValue? initial,
- ValueChanged<
TextEditingValue> ? onChange,
Creates a FOtpFieldControl.
Implementation
const FOtpFieldManagedControl({
this.controller,
this.children = const [FOtpItem(), FOtpItem(), FOtpItem(), FOtpItem(), FOtpItem(), FOtpItem()],
this.initial,
this.onChange,
}) : assert(
controller == null || initial == null,
'Cannot provide both controller and initial value. Pass initial value to the controller instead.',
),
super._();