PinputControllerExt extension
Helper methods for Pinput to easily set, delete, append the value programmatically
final controller = TextEditingController();
controller.setText('1234');
Pinput(
controller: controller,
);
Properties
- length → int
-
Available on TextEditingController, provided by the PinputControllerExt extension
The length of the Pinput valueno setter
Methods
-
append(
String s, int maxLength) → void -
Available on TextEditingController, provided by the PinputControllerExt extension
Appends character at the end of the Pinput -
delete(
) → void -
Available on TextEditingController, provided by the PinputControllerExt extension
Deletes the last character of Pinput value -
moveCursorToEnd(
) → void -
Available on TextEditingController, provided by the PinputControllerExt extension
Moves cursor at the end -
setText(
String pin) → void -
Available on TextEditingController, provided by the PinputControllerExt extension
Sets Pinput value