Neumorphic constructor
Neumorphic({
- Key? key,
- Widget? child,
- Duration duration = Neumorphic.DEFAULT_DURATION,
- Curve curve = Neumorphic.DEFAULT_CURVE,
- NeumorphicStyle? style,
- TextStyle? textStyle,
- EdgeInsets margin = const EdgeInsets.all(0),
- EdgeInsets padding = const EdgeInsets.all(0),
- 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);