DragFlipper constructor

const DragFlipper({
  1. Key? key,
  2. required Widget front,
  3. required Widget? back,
  4. required FlipperController controller,
  5. double height = 220,
  6. double width = 324,
  7. Border? border,
  8. EdgeInsets padding = const EdgeInsets.symmetric(vertical: 8, horizontal: 12),
  9. EdgeInsets? margin,
  10. Color backgroundColor = const Color(0xff0c0c0c),
  11. BorderRadiusGeometry? borderRadius,
  12. Gradient? gradient,
  13. BoxShape shape = BoxShape.rectangle,
  14. bool showShadow = true,
})

Implementation

const DragFlipper(
    {super.key,
    required this.front,
    required this.back,
      required this.controller,
      this.height=220,
      this.width=324,
      this.border,
      this.padding= const EdgeInsets.symmetric(vertical: 8, horizontal: 12),
      this.margin,
      this.backgroundColor= const Color(0xff0c0c0c),
      this.borderRadius,
      this.gradient,
      this.shape=BoxShape.rectangle,
      this.showShadow= true
    }):
      assert(shape != BoxShape.circle || borderRadius == null);