canExport property

bool get canExport

Gets or sets a value indicating whether the PdfField is exportable or not.

The default value is true.

Implementation

bool get canExport {
  if (_fieldHelper.isLoadedField) {
    _export = !(_fieldHelper.isFlagPresent(FieldFlags.noExport) ||
        _fieldHelper.flags.contains(FieldFlags.noExport));
  }
  return _export;
}
set canExport (bool value)

Implementation

set canExport(bool value) {
  if (canExport != value) {
    _export = value;
    _export
        ? _fieldHelper.isLoadedField
            ? _fieldHelper.removeFlag(FieldFlags.noExport)
            : _fieldHelper.flags.remove(FieldFlags.noExport)
        : _fieldHelper.flags.add(FieldFlags.noExport);
  }
}