InkFeature constructor

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,
}) : _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,
    );
  }
}