InteractiveInkFeature constructor Null safety

InteractiveInkFeature(
  1. {required MaterialInkController controller,
  2. required RenderBox referenceBox,
  3. required Color color,
  4. VoidCallback? onRemoved}
)

Creates an InteractiveInkFeature.

The controller and referenceBox arguments must not be null.

Implementation

InteractiveInkFeature({
  required MaterialInkController controller,
  required RenderBox referenceBox,
  required Color color,
  VoidCallback? onRemoved,
}) : assert(controller != null),
     assert(referenceBox != null),
     _color = color,
     super(controller: controller, referenceBox: referenceBox, onRemoved: onRemoved);