InkDecoration constructor

InkDecoration({
  1. required Decoration? decoration,
  2. bool isVisible = true,
  3. required ImageConfiguration configuration,
  4. required MaterialInkController controller,
  5. required RenderBox referenceBox,
  6. VoidCallback? onRemoved,
})

Draws a decoration on a Material.

Implementation

InkDecoration({
  required Decoration? decoration,
  bool isVisible = true,
  required ImageConfiguration configuration,
  required super.controller,
  required super.referenceBox,
  super.onRemoved,
}) : _configuration = configuration {
  this.decoration = decoration;
  this.isVisible = isVisible;
  controller.addInkFeature(this);
}