clearFieldState method
- {required CreatorModel creatorModel}
Clears this field's data. The state refresh afterwards is not performed here and should be performed by the invocation of the clear field button.
Implementation
void clearFieldState({
required CreatorModel creatorModel,
}) {
_exportFile = null;
_imageSuggestions = null;
_indexNotifier.value = 0;
_currentSearchTerm = null;
_isSearching = false;
_autoCannotOverride = false;
creatorModel.refresh();
}