animatedContained method
Widget
animatedContained({
- required Duration duration,
- Key? key,
- AlignmentGeometry? alignment,
- EdgeInsetsGeometry? padding,
- Color? color,
- Decoration? decoration,
- Decoration? foregroundDecoration,
- double? width,
- double? height,
- BoxConstraints? constraints,
- EdgeInsetsGeometry? margin,
- Matrix4? transform,
- AlignmentGeometry? transformAlignment,
- Clip clipBehavior = Clip.none,
- Curve curve = Curves.linear,
- VoidCallback? onEnd,
Implicitly animated all container properties. Does not animate the widget is it being called on.
Implementation
Widget animatedContained({
required Duration duration,
Key? key,
AlignmentGeometry? alignment,
EdgeInsetsGeometry? padding,
Color? color,
Decoration? decoration,
Decoration? foregroundDecoration,
double? width,
double? height,
BoxConstraints? constraints,
EdgeInsetsGeometry? margin,
Matrix4? transform,
AlignmentGeometry? transformAlignment,
Clip clipBehavior = Clip.none,
Curve curve = Curves.linear,
VoidCallback? onEnd,
}) {
return AnimatedContainer(
key: key,
alignment: alignment,
padding: padding,
color: color,
decoration: decoration,
foregroundDecoration: foregroundDecoration,
width: width,
height: height,
constraints: constraints,
margin: margin,
transform: transform,
transformAlignment: transformAlignment,
clipBehavior: clipBehavior,
curve: curve,
duration: duration,
onEnd: onEnd,
child: this,
);
}