InkFeature constructor Null safety

InkFeature(
  1. {required MaterialInkController controller,
  2. required RenderBox referenceBox,
  3. VoidCallback? onRemoved}
)

Initializes fields for subclasses.

Implementation

InkFeature({
  required MaterialInkController controller,
  required this.referenceBox,
  this.onRemoved,
}) : assert(controller != null),
     assert(referenceBox != null),
     _controller = controller as _RenderInkFeatures;