modify method

void modify(
  1. int newType,
  2. String newText,
  3. Color newColor,
  4. Color newBackgroundColor,
  5. Color newContainerColor,
  6. double newBorderRadius,
)

change the outlook of the widgeton the fly

Implementation

void modify(int newType, String newText, Color newColor, Color newBackgroundColor, Color newContainerColor, double newBorderRadius) {
  widgetState.modifyWidget(newType, newText, newColor, newBackgroundColor, newContainerColor, newBorderRadius);
}