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.

Constructors

InkFeature({MaterialInkController controller, RenderBox referenceBox, VoidCallback onRemoved })

Initializes fields for subclasses.

Properties

onRemoved VoidCallback

Called when the ink feature is no longer visible on the material.

read-only
referenceBox RenderBox

The render box whose visual position defines the frame of reference for this ink feature.

read-only
hashCode int

Get a hash code for this object.

read-only, inherited
runtimeType Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator ==(other) bool

The equality operator.

inherited

Methods

dispose() → void

Free up the resources associated with this ink feature.

paintFeature(Canvas canvas, Matrix4 transform) → void

Override this method to paint the ink feature.

toString() String

Returns a string representation of this object.

noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited