InkDecoration constructor Null safety

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

Draws a decoration on a Material.

Implementation

InkDecoration({
  required Decoration? decoration,
  required ImageConfiguration configuration,
  required MaterialInkController controller,
  required RenderBox referenceBox,
  VoidCallback? onRemoved,
}) : assert(configuration != null),
     _configuration = configuration,
     super(controller: controller, referenceBox: referenceBox, onRemoved: onRemoved) {
  this.decoration = decoration;
  controller.addInkFeature(this);
}