maxLength method

TextArea maxLength(
  1. num number, {
  2. bool? removeIf,
})

The maximum number of characters (UTF-16 code units) that the user can enter. Read more...

Implementation

TextArea maxLength(num number, {bool? removeIf}) {
  if (removeIf != true && node.attrs != null) {
    VirtualAttr attr = VirtualAttr('maxlength', number.toString());
    node.attrs!.add(attr);
  }
  return this;
}