NeumorphicContainer constructor

NeumorphicContainer({
  1. Widget? child,
  2. double bevel = 12.0,
  3. CurveType curveType = CurveType.convex,
  4. Color? color,
  5. NeumorphicDecoration? decoration,
  6. AlignmentGeometry? alignment,
  7. double? width,
  8. double? height,
  9. BoxConstraints? constraints,
  10. EdgeInsetsGeometry? margin,
  11. EdgeInsets? padding,
  12. Matrix4? transform,
  13. Key? key,
})

Implementation

NeumorphicContainer({
  this.child,
  this.bevel = 12.0,
  this.curveType = CurveType.convex,
  Color? color,
  NeumorphicDecoration? decoration,
  this.alignment,
  this.width,
  this.height,
  BoxConstraints? constraints,
  this.margin,
  this.padding,
  this.transform,
  Key? key,
})  : decoration = decoration ?? NeumorphicDecoration(color: color),
      constraints = (width != null || height != null)
          ? constraints?.tighten(width: width, height: height) ??
              BoxConstraints.tightFor(width: width, height: height)
          : constraints,
      super(key: key);