modifyWidget method

void modifyWidget(
  1. String setText,
  2. double setSize,
  3. bool setWeight,
  4. Color setColor,
  5. Color setBackgroundColor,
)

Implementation

void modifyWidget(String setText, double setSize, bool setWeight, Color setColor, Color setBackgroundColor) {
  setState(() {
    text = setText;
    fsize = setSize;
    isbold = setWeight;
    color = setColor;
    backgroundColor = setBackgroundColor;
  });
}