NeonPainter constructor

NeonPainter({
  1. required Color color,
  2. double? opacity,
  3. EdgeInsets? padding,
  4. bool? disableEmphasis,
  5. double? emphasisWidth,
  6. double? emphasisOpacity,
  7. double? emphasisAngleDegree,
  8. bool? enableLineZiggle,
  9. double? lineZiggleLevel,
  10. bool? isDoubleLayer,
})

Implementation

NeonPainter({
  required Color color,
  double? opacity,
  EdgeInsets? padding,
  bool? disableEmphasis,
  double? emphasisWidth,
  double? emphasisOpacity,
  double? emphasisAngleDegree,
  bool? enableLineZiggle,
  double? lineZiggleLevel,
  bool? isDoubleLayer,
})  : this.opacity = opacity ?? 0.5,
      this.color = color,
      this.padding = padding ?? EdgeInsets.symmetric(horizontal: 5),
      this.disableEmphasis = disableEmphasis ?? false,
      this.emphasisWidth = emphasisWidth ?? 5.0,
      this.emphasisOpacity = emphasisOpacity ?? (opacity ?? 0.5 + 0.05),
      this.emphasisAngleDegree = emphasisAngleDegree ?? 1,
      this.enableLineZiggle = enableLineZiggle ?? false,
      this.lineZiggleLevel = lineZiggleLevel ?? 1,
      this.isDoubleLayer = isDoubleLayer ?? false;