Neumorphic constructor

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

Implementation

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