InkFeature constructor
- required MaterialInkController controller,
- required RenderBox referenceBox,
- VoidCallback? onRemoved,
Initializes fields for subclasses.
Implementation
InkFeature({
required MaterialInkController controller,
required this.referenceBox,
this.onRemoved,
}) : _controller = controller as _RenderInkFeatures {
// TODO(polina-c): stop duplicating code across disposables
// https://github.com/flutter/flutter/issues/137435
if (kFlutterMemoryAllocationsEnabled) {
FlutterMemoryAllocations.instance.dispatchObjectCreated(
library: 'package:flutter/material.dart',
className: '$InkFeature',
object: this,
);
}
}