NeumorphismDecorationPainter constructor

NeumorphismDecorationPainter({
  1. required NeumorphismStyle style,
  2. required NeumorphismBoxShape shape,
  3. required bool drawGradient,
  4. required bool drawShadow,
  5. required bool drawBackground,
  6. required VoidCallback onChanged,
  7. bool renderingByPath = true,
})

Implementation

NeumorphismDecorationPainter({
  required this.style,
  required this.shape,
  required this.drawGradient,
  required this.drawShadow,
  required this.drawBackground,
  required VoidCallback onChanged,
  this.renderingByPath = true,
}) : super(onChanged) {
  generatePainters();
}