animate method
AnimatedPhysicalModel
animate(
{ - 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,
- required Widget child,
})
Implementation
AnimatedPhysicalModel animate(
{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,
required Widget child}) {
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: child);
}