include property Null safety

bool include
inherited

Gets or sets a value indicating whether fields contained in the fields collection will be included for resetting or submitting.

If the include property is true, only the fields in this collection will be reset or submitted. If the include property is false, the fields in this collection are not reset or submitted and only the remaining form fields are reset or submitted. If the collection is empty, then all the form fields are reset and the include property is ignored.

Implementation

bool include = false;
void include=(bool value)
override

Gets or sets a value indicating whether fields contained in the fields collection will be included for resetting or submitting.

If the include property is true, only the fields in this collection will be reset or submitted. If the include property is false, the fields in this collection are not reset or submitted and only the remaining form fields are reset or submitted. If the collection is empty, then all the form fields are reset and the include property is ignored.

Implementation

@override
set include(bool value) {
  if (super.include != value) {
    super.include = value;
    if (super.include) {
      _flags.remove(PdfSubmitFormFlags.includeExclude);
    } else {
      _flags.add(PdfSubmitFormFlags.includeExclude);
    }
  }
}