append method

void append(
  1. String s,
  2. int maxLength
)

Appends character at the end of the Pinput

Implementation

void append(String s, int maxLength) {
  if (this.length == maxLength) return;
  this.text = '${this.text}$s';
  this.moveCursorToEnd();
}