appendCharacter method
Implementation
void appendCharacter(String character, {int? maxLength}) {
if (maxLength != null && text.length >= maxLength) return;
final String updated = text + character;
value = TextEditingValue(
text: updated,
selection: TextSelection.collapsed(offset: updated.length),
);
}