FOtpFieldManagedControl constructor

const FOtpFieldManagedControl({
  1. FOtpController? controller,
  2. List<Widget> children = const [FOtpItem(), FOtpItem(), FOtpItem(), FOtpItem(), FOtpItem(), FOtpItem()],
  3. TextEditingValue? initial,
  4. 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._();