TipStyle constructor

TipStyle({
  1. Color? fillColor,
  2. Color? strokeColor,
  3. double strokeWidth = 0,
  4. Color? backgroundStrokeColor,
  5. double backgroundStrokeWidth = 0,
})

Implementation

TipStyle({
  Color? fillColor,
  Color? strokeColor,
  double strokeWidth = 0,
  Color? backgroundStrokeColor,
  double backgroundStrokeWidth = 0,
}) : super(
        fillColors: fillColor != null ? [fillColor] : [],
        strokeColors: strokeColor != null ? [strokeColor] : [],
        strokeWidth: strokeWidth,
        backgroundStrokeColors:
            backgroundStrokeColor != null ? [backgroundStrokeColor] : [],
        backgroundStrokeWidth: backgroundStrokeWidth,
      );