ButtonProps constructor

const ButtonProps({
  1. GestureTapDownCallback? onTapDown,
  2. GestureTapUpCallback? onTapUp,
  3. GestureTapCallback? onTapCancel,
  4. GestureTapCallback? onDoubleTap,
  5. GestureLongPressCallback? onLongPress,
  6. GestureTapCallback? onSecondaryTap,
  7. GestureTapUpCallback? onSecondaryTapUp,
  8. GestureTapDownCallback? onSecondaryTapDown,
  9. GestureTapCallback? onSecondaryTapCancel,
  10. ValueChanged<bool>? onHighlightChanged,
  11. ValueChanged<bool>? onHover,
  12. MouseCursor? mouseCursor,
  13. bool containedInkWell = false,
  14. BoxShape highlightShape = BoxShape.circle,
  15. double? radius,
  16. BorderRadius? borderRadius,
  17. ShapeBorder? customBorder,
  18. Color? focusColor,
  19. Color? hoverColor,
  20. Color? highlightColor,
  21. MaterialStateProperty<Color?>? overlayColor,
  22. Color? splashColor,
  23. InteractiveInkFeatureFactory? splashFactory,
  24. bool enableFeedback = true,
  25. bool excludeFromSemantics = false,
  26. FocusNode? focusNode,
  27. bool canRequestFocus = true,
  28. ValueChanged<bool>? onFocusChange,
  29. bool autofocus = false,
  30. MaterialStatesController? statesController,
  31. Duration? hoverDuration,
})

Creates an area of a Material that responds to touch.

Must have an ancestor Material widget in which to cause ink reactions.

Implementation

const ButtonProps({
  this.onTapDown,
  this.onTapUp,
  this.onTapCancel,
  this.onDoubleTap,
  this.onLongPress,
  this.onSecondaryTap,
  this.onSecondaryTapUp,
  this.onSecondaryTapDown,
  this.onSecondaryTapCancel,
  this.onHighlightChanged,
  this.onHover,
  this.mouseCursor,
  this.containedInkWell = false,
  this.highlightShape = BoxShape.circle,
  this.radius,
  this.borderRadius,
  this.customBorder,
  this.focusColor,
  this.hoverColor,
  this.highlightColor,
  this.overlayColor,
  this.splashColor,
  this.splashFactory,
  this.enableFeedback = true,
  this.excludeFromSemantics = false,
  this.focusNode,
  this.canRequestFocus = true,
  this.onFocusChange,
  this.autofocus = false,
  this.statesController,
  this.hoverDuration,
});