AnimatedInk constructor
AnimatedInk({ - Key? key,
- required Duration duration,
- Curve curve = Curves.linear,
- VoidCallback? onEnd,
- EdgeInsetsGeometry? padding,
- Color? color,
- Decoration? decoration,
- double? width,
- double? height,
- Widget? child,
})
Implementation
AnimatedInk({
super.key,
required super.duration,
super.curve = Curves.linear,
super.onEnd,
this.padding,
Color? color,
Decoration? decoration,
this.width,
this.height,
this.child,
}) : assert(padding == null || padding.isNonNegative),
assert(decoration == null || decoration.debugAssertIsValid()),
assert(
color == null || decoration == null,
'Cannot provide both a color and a decoration\n'
'The color argument is just a shorthand for '
'"decoration: BoxDecoration(color: color)".',
),
decoration =
decoration ?? (color != null ? BoxDecoration(color: color) : null);