CellAnimatedPhysicalModel constructor

const CellAnimatedPhysicalModel({
  1. Key? key,
  2. required ValueCell<Widget> child,
  3. ValueCell<BoxShape> shape = const ValueCell.value(BoxShape.rectangle),
  4. ValueCell<Clip> clipBehavior = const ValueCell.value(Clip.none),
  5. ValueCell<BorderRadius?>? borderRadius,
  6. ValueCell<double> elevation = const ValueCell.value(0.0),
  7. required ValueCell<Color> color,
  8. ValueCell<bool> animateColor = const ValueCell.value(true),
  9. required ValueCell<Color> shadowColor,
  10. ValueCell<bool> animateShadowColor = const ValueCell.value(true),
  11. ValueCell<Curve> curve = const ValueCell.value(Curves.linear),
  12. required ValueCell<Duration> duration,
  13. ValueCell<void Function()?>? onEnd,
})

Implementation

const CellAnimatedPhysicalModel({
  super.key,
  required this.child,
  this.shape = const ValueCell.value(BoxShape.rectangle),
  this.clipBehavior = const ValueCell.value(Clip.none),
  this.borderRadius,
  this.elevation = const ValueCell.value(0.0),
  required this.color,
  this.animateColor = const ValueCell.value(true),
  required this.shadowColor,
  this.animateShadowColor = const ValueCell.value(true),
  this.curve = const ValueCell.value(Curves.linear),
  required this.duration,
  this.onEnd,
});