inkWell method
InkWell
inkWell({
- Key? key,
- VoidCallback? onTap,
- VoidCallback? onDoubleTap,
- void onSecondaryTap()?,
- void onLongPress()?,
- void onHover()?,
- void onTapDown()?,
- void onTapUp()?,
- void onTapCancel()?,
- void onSecondaryTapUp()?,
- void onSecondaryTapDown()?,
- void onSecondaryTapCancel()?,
- void onHighlightChanged()?,
- void onFocusChange()?,
- Color? hoverColor,
- Color? focusColor,
- Color? highlightColor,
- Color? splashColor,
- WidgetStateProperty<
Color?> ? overlayColor, - InteractiveInkFeatureFactory? splashFactory,
- BorderRadius? borderRadius,
- ShapeBorder? customBorder,
- double? radius,
- MouseCursor? mouseCursor,
- bool? enableFeedback = true,
- bool excludeFromSemantics = false,
- FocusNode? focusNode,
- bool canRequestFocus = true,
- bool autofocus = false,
- WidgetStatesController? statesController,
- Duration? hoverDuration,
Implementation
InkWell inkWell({
Key? key,
VoidCallback? onTap,
VoidCallback? onDoubleTap,
void Function()? onSecondaryTap,
void Function()? onLongPress,
void Function(bool)? onHover,
void Function(TapDownDetails)? onTapDown,
void Function(TapUpDetails)? onTapUp,
void Function()? onTapCancel,
void Function(TapUpDetails)? onSecondaryTapUp,
void Function(TapDownDetails)? onSecondaryTapDown,
void Function()? onSecondaryTapCancel,
void Function(bool)? onHighlightChanged,
void Function(bool)? onFocusChange,
Color? hoverColor,
Color? focusColor,
Color? highlightColor,
Color? splashColor,
WidgetStateProperty<Color?>? overlayColor,
InteractiveInkFeatureFactory? splashFactory,
BorderRadius? borderRadius,
ShapeBorder? customBorder,
double? radius,
MouseCursor? mouseCursor,
bool? enableFeedback = true,
bool excludeFromSemantics = false,
FocusNode? focusNode,
bool canRequestFocus = true,
bool autofocus = false,
WidgetStatesController? statesController,
Duration? hoverDuration,
}) {
return InkWell(
child: this,
key: key,
onTap: onTap,
onDoubleTap: onDoubleTap,
onSecondaryTap: onSecondaryTap,
onLongPress: onLongPress,
hoverColor: hoverColor,
radius: radius,
borderRadius: borderRadius,
customBorder: customBorder,
enableFeedback: enableFeedback ?? true,
onHover: onHover,
highlightColor: highlightColor,
overlayColor: overlayColor,
splashColor: splashColor,
splashFactory: splashFactory,
onTapDown: onTapDown,
onTapUp: onTapUp,
onTapCancel: onTapCancel,
onSecondaryTapUp: onSecondaryTapUp,
onSecondaryTapDown: onSecondaryTapDown,
onSecondaryTapCancel: onSecondaryTapCancel,
onHighlightChanged: onHighlightChanged,
mouseCursor: mouseCursor,
focusColor: focusColor,
excludeFromSemantics: excludeFromSemantics,
focusNode: focusNode,
onFocusChange: onFocusChange,
autofocus: autofocus,
statesController: statesController,
hoverDuration: hoverDuration,
);
}