clear method
void
clear()
Clears the collection.
Implementation
void clear() {
if (_field != null && PdfFieldHelper.getHelper(_field!).isLoadedField) {
final PdfArray list = _getItems()..clear();
PdfFieldHelper.getHelper(_field!)
.dictionary!
.setProperty(PdfDictionaryProperties.opt, list);
} else {
_helper._items.clear();
}
_helper.list.clear();
}