update method

void update({
  1. double? strokeWidth,
  2. Color? color,
  3. bool? fill,
  4. PaintMode? mode,
  5. String? text,
  6. int? strokeMultiplier,
})

Implementation

void update({
  double? strokeWidth,
  Color? color,
  bool? fill,
  PaintMode? mode,
  String? text,
  int? strokeMultiplier,
}) {
  _strokeWidth = strokeWidth ?? _strokeWidth;
  _color = color ?? _color;
  _fill = fill ?? _fill;
  _mode = mode ?? _mode;
  _text = text ?? _text;
  _strokeMultiplier = strokeMultiplier ?? _strokeMultiplier;
  notifyListeners();
}