CupertinoTextButton constructor

const CupertinoTextButton({
  1. Key? key,
  2. required String? text,
  3. TextStyle? style,
  4. TextAlign? textAlign,
  5. TextDirection? textDirection,
  6. TextOverflow? textOverflow,
  7. bool? softWrap = true,
  8. VoidCallback? onTap,
  9. VoidCallback? onLongPress,
  10. Color? color,
  11. Color? pressedColor,
  12. Duration? forwardDuration,
  13. Duration? backwardDuration,
  14. Curve? curve,
  15. 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);