diff --git a/packages/flutter/lib/src/widgets/implicit_animations.dart b/packages/flutter/lib/src/widgets/implicit_animations.dart index 62c156f0d3..efd31e1da2 100644 --- a/packages/flutter/lib/src/widgets/implicit_animations.dart +++ b/packages/flutter/lib/src/widgets/implicit_animations.dart @@ -649,7 +649,7 @@ class AnimatedContainer extends ImplicitlyAnimatedWidget { assert(constraints == null || constraints.debugAssertIsValid()), assert(color == null || decoration == null, 'Cannot provide both a color and a decoration\n' - 'The color argument is just a shorthand for "decoration: new BoxDecoration(backgroundColor: color)".' + 'The color argument is just a shorthand for "decoration: BoxDecoration(color: color)".' ), decoration = decoration ?? (color != null ? BoxDecoration(color: color) : null), constraints =