validityState top-level property

dynamic get validityState

The validity states that an element can be in, with respect to constraint validation. Together, they help explain why an element's value fails to validate, if it's not valid.

MDN Reference

Implementation

_i2.dynamic get validityState => _i4.getProperty(
      _self,
      'ValidityState',
    );