handleControllers method is called during building of textfields and it is called inside the loop, as you can see in the code (flutter_otp_text_field version 1.1.1). This still works, however, I don't understand why you are calling it inside the loop. This however results in the following behaviour.
styles added: handleControllers not called.
styles not added: handleControllers called.
Expected behaviour:
handleControllers should be called irrespective of whether styles added.
handleControllers method is called during building of textfields and it is called inside the loop, as you can see in the code (flutter_otp_text_field version 1.1.1). This still works, however, I don't understand why you are calling it inside the loop. This however results in the following behaviour.
styles added: handleControllers not called. styles not added: handleControllers called.
Expected behaviour: handleControllers should be called irrespective of whether styles added.