InkFeature class abstract
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.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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.
no setterinherited
Methods
-
dispose(
) → void - Free up the resources associated with this ink feature.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
paintFeature(
Canvas canvas, Matrix4 transform) → void - Override this method to paint the ink feature.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited