AnimatedInk constructor

AnimatedInk({
  1. Key? key,
  2. required Duration duration,
  3. Curve curve = Curves.linear,
  4. VoidCallback? onEnd,
  5. EdgeInsetsGeometry? padding,
  6. Color? color,
  7. Decoration? decoration,
  8. double? width,
  9. double? height,
  10. 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);