maxLength property

int get maxLength

Implementation

int get maxLength => int.tryParse(getAttribute('maxlength') ?? '') ?? -1;
set maxLength (int value)

Implementation

set maxLength(int value) {
  if (value.isNegative || value == 0) value = -1;
  internalSetAttribute('maxlength', value.toString());
}