InkFeature class

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
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
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

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

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited