InteractiveInkFeature class
An ink feature that displays a color "splash" in response to a user gesture that can be confirmed or canceled.
Subclasses call confirm when an input gesture is recognized. For example a press event might trigger an ink feature that's confirmed when the corresponding up event is seen.
Subclasses call cancel when an input gesture is aborted before it is recognized. For example a press event might trigger an ink feature that's cancelled when the pointer is dragged out of the reference box.
The InkWell and InkResponse widgets generate instances of this class.
- Inheritance
- Object
- InkFeature
- InteractiveInkFeature
- Implementers
Constructors
- InteractiveInkFeature({@required MaterialInkController controller, @required RenderBox referenceBox, Color color, VoidCallback onRemoved })
- Creates an InteractiveInkFeature. [...]
Properties
- color ↔ Color
-
The ink's color.
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
Methods
-
cancel(
) → void - Called when the user input that triggered this feature's appearance was canceled. [...]
-
confirm(
) → void - Called when the user input that triggered this feature's appearance was confirmed. [...]
-
dispose(
) → void -
Free up the resources associated with this ink feature.
@mustCallSuper, inherited
-
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, inherited
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
inherited