SimpleFoldingCell.create constructor

SimpleFoldingCell.create({
  1. Key? key,
  2. required Widget? frontWidget,
  3. required Widget? innerWidget,
  4. Size? cellSize = const Size(100.0, 100.0),
  5. bool? unfoldCell = false,
  6. bool? skipAnimation = false,
  7. EdgeInsetsGeometry? padding = const EdgeInsets.only(left: 20, right: 20, bottom: 5, top: 10),
  8. Duration? animationDuration = const Duration(milliseconds: 500),
  9. double? borderRadius = 0.0,
  10. VoidCallback? onOpen,
  11. VoidCallback? onClose,
})

Implementation

SimpleFoldingCell.create(
    {Key? key,
    required this.frontWidget,
    required this.innerWidget,
    this.cellSize = const Size(100.0, 100.0),
    this.unfoldCell = false,
    this.skipAnimation = false,
    this.padding =
        const EdgeInsets.only(left: 20, right: 20, bottom: 5, top: 10),
    this.animationDuration = const Duration(milliseconds: 500),
    this.borderRadius = 0.0,
    this.onOpen,
    this.onClose})
    : assert(frontWidget != null),
      assert(innerWidget != null),
      assert(cellSize != null),
      assert(unfoldCell != null),
      assert(skipAnimation != null),
      assert(padding != null),
      assert(animationDuration != null),
      assert(borderRadius != null && borderRadius >= 0.0),
      super(key: key);