required property

bool get required

When present, marks an element that can't be submitted without a value.

MDN Reference

Implementation

_i2.bool get required => _i4.getProperty(
      this,
      'required',
    );
set required (bool value)

Implementation

set required(_i2.bool value) {
  _i4.setProperty(
    this,
    'required',
    value,
  );
}