setStyle method

void setStyle({
  1. Color? fillColor,
  2. List<Color>? fillColors,
  3. Color? strokeColor,
  4. List<Color>? strokeColors,
  5. double? strokeWidth,
  6. Color? backgroundStrokeColor,
  7. List<Color>? backgroundStrokeColors,
  8. double? backgroundStrokeWidth,
  9. bool family = true,
})

Implementation

void setStyle(
    {Color? fillColor,
    List<Color>? fillColors,
    Color? strokeColor,
    List<Color>? strokeColors,
    double? strokeWidth,
    Color? backgroundStrokeColor,
    List<Color>? backgroundStrokeColors,
    double? backgroundStrokeWidth,
    bool family = true}) {
  setFill(
    color: fillColor,
    colors: fillColors,
    family: family,
  );

  setStroke(
      color: strokeColor,
      colors: strokeColors,
      width: strokeWidth,
      background: false,
      family: family);

  setBackgroundStroke(
      color: backgroundStrokeColor,
      colors: backgroundStrokeColors,
      width: backgroundStrokeWidth,
      family: family);
}