clearFormData method

void clearFormData({
  1. int pageNumber = 0,
})

Clears the form fields data in the PDF document.

pageNumber - optional - The page number in which all form fields should be cleared.

Implementation

void clearFormData({int pageNumber = 0}) {
  _clearFormDataPageNumber = pageNumber;
  _notifyPropertyChangedListeners(property: 'clearFormData');
  // Reset the page number to 0 after clearing the form fields.
  _clearFormDataPageNumber = 0;
}