clearData method
Implementation
void clearData({
bool goToDefaults = true,
}) {
_updateData(
goToDefaults ? componentData.defaultValue : null,
);
}
void clearData({
bool goToDefaults = true,
}) {
_updateData(
goToDefaults ? componentData.defaultValue : null,
);
}