A visual reaction on a piece of Material to user input.

This object is rarely created directly. Instead of creating an ink splash directly, consider using an InkResponse or InkWell widget, which uses gestures (such as tap and long-press) to trigger ink splashes.

See also:



InkSplash({@required MaterialInkController controller, @required RenderBox referenceBox, Offset position, Color color, bool containedInkWell: false, RectCallback rectCallback, BorderRadius borderRadius: BorderRadius.zero, double radius, VoidCallback onRemoved })
Begin a splash, centered at position relative to referenceBox. [...]


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


cancel() → void
The user input was canceled. [...]
confirm() → void
The user input is confirmed. [...]
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. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
toString() String
Returns a string representation of this object.


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