animatedPhysicalModel method
Implementation
AnimatedPhysicalModel animatedPhysicalModel(
{Curve curve = Curves.linear,
Duration duration = const Duration(milliseconds: 300),
VoidCallback? onEnd,
required Color color,
double borderRadius = 5.0,
Clip clipBehavior = Clip.none,
double elevation = 0,
Color shadowColor = Colors.grey,
BoxShape shape = BoxShape.rectangle}) {
return AnimatedPhysicalModel(
key: key,
color: color,
borderRadius: BorderRadius.circular(borderRadius),
clipBehavior: clipBehavior,
shape: shape,
curve: curve,
duration: duration,
onEnd: onEnd,
elevation: elevation,
shadowColor: shadowColor,
child: this);
}