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 super.referenceBox,
  super.onRemoved,
}) : assert(configuration != null),
     _configuration = configuration,
     super(controller: controller) {
  this.decoration = decoration;
  controller.addInkFeature(this);
}