InkFeature class Null safety

A visual reaction on a piece of Material.

To add an ink feature to a piece of Material, obtain the MaterialInkController via Material.of and call MaterialInkController.addInkFeature.

Implementers

Constructors

InkFeature({required MaterialInkController controller, required RenderBox referenceBox, VoidCallback? onRemoved})
Initializes fields for subclasses.

Properties

controller MaterialInkController
The MaterialInkController associated with this InkFeature.
read-only
hashCode int
The hash code for this object.
read-onlyinherited
onRemoved VoidCallback?
Called when the ink feature is no longer visible on the material.
final
referenceBox RenderBox
The render box whose visual position defines the frame of reference for this ink feature.
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

dispose() → void
Free up the resources associated with this ink feature.
mustCallSuper">@mustCallSuper
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
paintFeature(Canvas canvas, Matrix4 transform) → void
Override this method to paint the ink feature.
protected">@protected
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited