modifyWidget method
void
modifyWidget()
Implementation
void modifyWidget(int newType, String newText, Color newColor, Color newBackgroundColor, Color newContainerColor, double newBorderRadius) {
setState(() {
type = newType;
text = newText;
color = newColor;
backgroundColor = newBackgroundColor;
containerColor = newContainerColor;
borderRadius = newBorderRadius;
});
}