SimpleFoldingCell.create constructor
SimpleFoldingCell.create({
- Key? key,
- required Widget? frontWidget,
- required Widget? innerWidget,
- Size? cellSize = const Size(100.0, 100.0),
- bool? unfoldCell = false,
- bool? skipAnimation = false,
- EdgeInsetsGeometry? padding = const EdgeInsets.only(left: 20, right: 20, bottom: 5, top: 10),
- Duration? animationDuration = const Duration(milliseconds: 500),
- double? borderRadius = 0.0,
- VoidCallback? onOpen,
- 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);