defaultValue property

String defaultValue

Gets or sets the default value.

Implementation

String get defaultValue {
  if (_helper.isLoadedField) {
    final IPdfPrimitive? str = PdfFieldHelper.getValue(_helper.dictionary!,
        _helper.crossTable, PdfDictionaryProperties.dv, true);
    if (str != null && str is PdfString) {
      _defaultValue = str.value;
    }
  }
  return _defaultValue!;
}
void defaultValue=(String value)

Implementation

set defaultValue(String value) {
  if (defaultValue != value) {
    _defaultValue = value;
    _helper.dictionary!.setString(PdfDictionaryProperties.dv, _defaultValue);
    if (_helper.isLoadedField) {
      _helper.changed = true;
    }
  }
}