reset method

Drops every modifier accumulated in this configuration so far.

Modifiers chained after the reset are kept, and orderOfModifiers is never cleared. The reset applies to this configuration only: merging the result into another configuration no longer clears that one's modifiers. Use the WidgetModifierConfig.reset factory when the reset must travel with the merge, as in style.wrap(.reset()).

Implementation

WidgetModifierConfig reset() {
  return merge(WidgetModifierConfig.reset());
}