setColor method

void setColor(
  1. Color backgroundColor,
  2. Color foregroundColor
)

Implementation

void setColor(Color backgroundColor, Color foregroundColor) {
  updateValue(
    value.copyWith(
      backgroundColor: backgroundColor,
      foregroundColor: foregroundColor,
    ),
  );
}