PinputControllerExt extension

Helper methods for Pinput to easily set, delete, append the value programmatically

final controller = TextEditingController();

controller.setText('1234');

Pinput(
  controller: controller,
);
on

Properties

length int
The length of the Pinput value
no setter

Methods

append(String s, int maxLength) → void
Appends character at the end of the Pinput
delete() → void
Deletes the last character of Pinput value
moveCursorToEnd() → void
Moves cursor at the end
setText(String pin) → void
Sets Pinput value