Neumorphism constructor

const Neumorphism({
  1. Key? key,
  2. Widget? child,
  3. Duration duration = Neumorphism.DEFAULT_DURATION,
  4. Curve curve = Neumorphism.DEFAULT_CURVE,
  5. NeumorphismStyle? style,
  6. TextStyle? textStyle,
  7. EdgeInsets margin = const EdgeInsets.all(0),
  8. EdgeInsets padding = const EdgeInsets.all(0),
  9. bool drawSurfaceAboveChild = true,
})

Implementation

const Neumorphism({
  super.key,
  this.child,
  this.duration = Neumorphism.DEFAULT_DURATION,
  this.curve = Neumorphism.DEFAULT_CURVE,
  this.style,
  this.textStyle,
  this.margin = const EdgeInsets.all(0),
  this.padding = const EdgeInsets.all(0),
  this.drawSurfaceAboveChild = true,
});