canExport property Null safety

bool canExport

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

The default value is true.

Implementation

bool get canExport {
  if (_isLoadedField) {
    _export = !(_isFlagPresent(_FieldFlags.noExport) ||
        _flags.contains(_FieldFlags.noExport));
  }
  return _export;
}
void canExport=(bool value)

Implementation

set canExport(bool value) {
  if (canExport != value) {
    _export = value;
    _export
        ? _isLoadedField
            ? _removeFlag(_FieldFlags.noExport)
            : _flags.remove(_FieldFlags.noExport)
        : _flags.add(_FieldFlags.noExport);
  }
}