FOtpController constructor

FOtpController({
  1. List<Widget> children = const [FOtpItem(), FOtpItem(), FOtpItem(), FOtpItem(), FOtpItem(), FOtpItem()],
  2. TextEditingValue value = .empty,
})

Creates a FOtpController.

Implementation

FOtpController({
  this.children = const [FOtpItem(), FOtpItem(), FOtpItem(), FOtpItem(), FOtpItem(), FOtpItem()],
  TextEditingValue value = .empty,
}) : _length = children.whereType<FOtpItemMixin>().length,
     _focused = 0,
     super.fromValue(value);