CupertinoTextButton.icon constructor
const
CupertinoTextButton.icon({
- Key? key,
- required IconData icon,
- double? size,
- TextDirection? textDirection,
- VoidCallback? onTap,
- VoidCallback? onLongPress,
- Color? color,
- Color? pressedColor,
- Duration? forwardDuration,
- Duration? backwardDuration,
- Curve? curve,
- 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);