animatedContained method

Widget animatedContained({
  1. required Duration duration,
  2. Key? key,
  3. AlignmentGeometry? alignment,
  4. EdgeInsetsGeometry? padding,
  5. Color? color,
  6. Decoration? decoration,
  7. Decoration? foregroundDecoration,
  8. double? width,
  9. double? height,
  10. BoxConstraints? constraints,
  11. EdgeInsetsGeometry? margin,
  12. Matrix4? transform,
  13. AlignmentGeometry? transformAlignment,
  14. Clip clipBehavior = Clip.none,
  15. Curve curve = Curves.linear,
  16. 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,
  );
}