clearOtp method

dynamic clearOtp()

Implementation

clearOtp() {
  controller.text = '';
  setState(() {
    _focusNode = FocusNode();
    pinsInputed = [];
    for (var i = 0; i < widget.maxLength; i++) {
      pinsInputed.add('');
    }
    _focusNode.addListener(_focusListener);
    ending = false;
    hasFocus = widget.highlightBorder;
    text = '';
  });
}