TeXViewInkWell class
A widget that responds to taps with a visual ripple effect.
This widget wraps a child widget and triggers the onTap callback when tapped.
- Implemented types
Constructors
- TeXViewInkWell({required TeXViewWidget child, required String id, dynamic onTap(String id)?, bool? rippleEffect, TeXViewStyle? style})
-
Creates a TeXViewInkWell widget.
const
Properties
- child → TeXViewWidget
-
The child widget to be wrapped by the ink well.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
A unique identifier for this ink well.
final
- onTap → dynamic Function(String id)?
-
A callback function that is called when the widget is tapped.
final
- rippleEffect → bool?
-
Whether to show a ripple effect on tap. Defaults to
true.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- style → TeXViewStyle?
-
The style to apply to the ink well container.
final
Methods
-
meta(
) → TeXViewWidgetMeta -
Returns metadata about the widget, such as its HTML tag and CSS classes.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onTapCallback(
String id) → void -
A callback triggered when a tap event occurs on this widget.
override
-
toJson(
) → Map -
Serializes the widget and its properties into a JSON-mappable object.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited