CupertinoTextButton constructor
const
CupertinoTextButton({
- Key? key,
- required String? text,
- TextStyle? style,
- TextAlign? textAlign,
- TextDirection? textDirection,
- TextOverflow? textOverflow,
- bool? softWrap = true,
- VoidCallback? onTap,
- VoidCallback? onLongPress,
- Color? color,
- Color? pressedColor,
- Duration? forwardDuration,
- Duration? backwardDuration,
- Curve? curve,
- EdgeInsets padding = EdgeInsets.zero,
Implementation
const CupertinoTextButton({
Key? key,
required this.text,
TextStyle? style,
this.textAlign,
this.textDirection,
this.textOverflow,
this.softWrap = true,
this.onTap,
this.onLongPress,
this.color,
this.pressedColor,
this.forwardDuration,
this.backwardDuration,
this.curve,
this.padding = EdgeInsets.zero,
}) : textStyle = style,
iconData = null,
iconSize = null,
iconTextDirection = null,
type = CupertinoTextButtonType.text,
super(key: key);