InkDecoration constructor Null safety
- {required Decoration? decoration,
- required ImageConfiguration configuration,
- required MaterialInkController controller,
- required RenderBox referenceBox,
- 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);
}