ClickProps class

Constructors

ClickProps.new({bool containedInkWell = true, BoxShape highlightShape = BoxShape.rectangle, ValueChanged<bool>? onFocusChange, FocusNode? focusNode, WidgetStatesController? statesController, BorderRadius? borderRadius, ShapeBorder? customBorder, bool enableFeedback = true, bool excludeFromSemantics = false, InteractiveInkFeatureFactory? splashFactory, bool autofocus = false, bool canRequestFocus = true, Color? focusColor, Color? highlightColor, Color? hoverColor, Duration? hoverDuration, MouseCursor? mouseCursor, GestureTapCallback? onDoubleTap, ValueChanged<bool>? onHover, GestureTapCallback? onSecondaryTap, GestureLongPressCallback? onLongPress, GestureTapCallback? onSecondaryTapCancel, GestureTapDownCallback? onSecondaryTapDown, GestureTapUpCallback? onSecondaryTapUp, WidgetStateProperty<Color?>? overlayColor, double? radius, Color? splashColor, ValueChanged<bool>? onHighlightChanged, GestureTapCallback? onTapCancel, GestureTapUpCallback? onTapUp, GestureTapDownCallback? onTapDown})
const

Properties

autofocus bool
True if this widget will be selected as the initial focus when no other node in its scope is currently focused.
final
borderRadius BorderRadius?
The border radius of the containing rectangle. This is effective only if highlightShape is BoxShape.rectangle.
final
canRequestFocus bool
If true, this widget may request the primary focus.
final
containedInkWell bool
Whether this ink response should be clipped its bounds.
final
customBorder ShapeBorder?
The custom clip border.
final
enableFeedback bool
Whether detected gestures should provide acoustic and/or haptic feedback.
final
excludeFromSemantics bool
Whether to exclude the gestures introduced by this widget from the semantics tree.
final
focusColor Color?
The color of the ink response when the parent widget is focused. If this property is null then the focus color of the theme, ThemeData.focusColor, will be used.
final
focusNode FocusNode?
An optional focus node to use as the focus node for this widget.
final
hashCode int
The hash code for this object.
no setterinherited
highlightColor Color?
The highlight color of the ink response when pressed. If this property is null then the highlight color of the theme, ThemeData.highlightColor, will be used.
final
highlightShape BoxShape
The shape (e.g., circle, rectangle) to use for the highlight drawn around this part of the material when pressed, hovered over, or focused.
final
hoverColor Color?
The color of the ink response when a pointer is hovering over it. If this property is null then the hover color of the theme, ThemeData.hoverColor, will be used.
final
hoverDuration Duration?
The duration of the animation that animates the hover effect.
final
mouseCursor MouseCursor?
The cursor for a mouse pointer when it enters or is hovering over the widget.
final
onDoubleTap GestureTapCallback?
Called when the user double taps this part of the material.
final
onFocusChange ValueChanged<bool>?
Handler called when the focus changes.
final
onHighlightChanged ValueChanged<bool>?
Called when this part of the material either becomes highlighted or stops being highlighted.
final
onHover ValueChanged<bool>?
Called when a pointer enters or exits the ink response area.
final
onLongPress GestureLongPressCallback?
Called when the user long-presses on this part of the material.
final
onSecondaryTap GestureTapCallback?
Called when the user taps this part of the material with a secondary button.
final
onSecondaryTapCancel GestureTapCallback?
Called when the user cancels a secondary button tap that was started on this part of the material.
final
onSecondaryTapDown GestureTapDownCallback?
Called when the user taps down on this part of the material with a secondary button.
final
onSecondaryTapUp GestureTapUpCallback?
Called when the user releases a secondary button tap that was started on this part of the material. onSecondaryTap is called immediately after.
final
onTapCancel GestureTapCallback?
Called when the user cancels a tap that was started on this part of the material.
final
onTapDown GestureTapDownCallback?
Called when the user taps down this part of the material.
final
onTapUp GestureTapUpCallback?
Called when the user releases a tap that was started on this part of the material. onTap is called immediately after.
final
overlayColor WidgetStateProperty<Color?>?
Defines the ink response focus, hover, and splash colors.
final
radius double?
The radius of the ink splash.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
splashColor Color?
The splash color of the ink response. If this property is null then the splash color of the theme, ThemeData.splashColor, will be used.
final
splashFactory InteractiveInkFeatureFactory?
Defines the appearance of the splash.
final
statesController WidgetStatesController?
Represents the interactive "state" of this widget in terms of a set of WidgetStates, like WidgetState.pressed and WidgetState.focused.
final

Methods

getRectCallback(RenderBox referenceBox) RectCallback?
The rectangle to use for the highlight effect and for clipping the splash effects if containedInkWell is true.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited