CupertinoButtonData constructor

const CupertinoButtonData({
  1. bool isEnabled = true,
  2. VoidCallback? onPressed,
  3. VoidCallback? onLongPress,
  4. MouseCursor? mouseCursor,
  5. FocusNode? focusNode,
  6. bool autofocus = kDefaultAutofocus,
  7. Widget? child,
  8. Key? widgetKey,
  9. CupertinoButtonSize sizeStyle = kDefaultSizeStyle,
  10. EdgeInsetsGeometry? padding,
  11. Color? color,
  12. Color? foregroundColor,
  13. Color? disabledColor,
  14. Size? minimumSize,
  15. double? pressedOpacity = kDefaultPressedOpacity,
  16. BorderRadius? borderRadius,
  17. AlignmentGeometry? alignment = kDefaultAlignment,
  18. ValueChanged<bool>? onFocusChange,
  19. Color? focusColor,
})

Creates Cupertino-specific button configuration.

Implementation

const CupertinoButtonData({
  super.isEnabled,
  super.onPressed,
  super.onLongPress,
  super.mouseCursor,
  super.focusNode,
  super.autofocus,
  super.child,
  super.widgetKey,
  this.sizeStyle = kDefaultSizeStyle,
  this.padding,
  this.color,
  this.foregroundColor,
  this.disabledColor,
  this.minimumSize,
  this.pressedOpacity = kDefaultPressedOpacity,
  this.borderRadius,
  this.alignment = kDefaultAlignment,
  this.onFocusChange,
  this.focusColor,
});