CupertinoTextButton.icon constructor

const CupertinoTextButton.icon({
  1. Key? key,
  2. required IconData icon,
  3. double? size,
  4. TextDirection? textDirection,
  5. VoidCallback? onTap,
  6. VoidCallback? onLongPress,
  7. Color? color,
  8. Color? pressedColor,
  9. Duration? forwardDuration,
  10. Duration? backwardDuration,
  11. Curve? curve,
  12. EdgeInsets padding = EdgeInsets.zero,
})

Implementation

const CupertinoTextButton.icon({
  Key? key,
  required IconData icon,
  double? size,
  TextDirection? textDirection,
  this.onTap,
  this.onLongPress,
  this.color,
  this.pressedColor,
  this.forwardDuration,
  this.backwardDuration,
  this.curve,
  this.padding = EdgeInsets.zero,
})  : text = null,
      textStyle = null,
      textAlign = null,
      textDirection = null,
      textOverflow = null,
      softWrap = null,
      iconData = icon,
      iconSize = size,
      iconTextDirection = textDirection,
      type = CupertinoTextButtonType.icon,
      super(key: key);