setValidity method

void setValidity([
  1. ValidityStateFlags? flags,
  2. String? message,
  3. HTMLElement? anchor
])

Implementation

void setValidity(
        [ValidityStateFlags? flags, String? message, HTMLElement? anchor]) =>
    js_util.callMethod(this, 'setValidity', [flags, message, anchor]);