children property

List<Widget> children
final

The children, which should be FOtpItemMixins or FOtpDividers. Defaults to six FOtpItems.

For example, to add a divider in the middle:

FOtpField(
  controller: FOtpController(
    children: [FOtpItem(), FOtpItem(), FOtpItem(), FOtpDivider(), FOtpItem(), FOtpItem(), FOtpItem()],
  ),
)

Implementation

final List<Widget> children;