SkTextButton constructor

const SkTextButton({
  1. Key? key,
  2. required String label,
  3. Color? textColor,
  4. required VoidCallback? onTap,
  5. VoidCallback? onLongPress,
  6. TextStyle? textStyle,
  7. bool isUnderlined = false,
  8. EdgeInsetsGeometry? padding,
  9. FocusNode? focusNode,
  10. bool autofocus = false,
  11. MouseCursor? mouseCursor,
  12. TextAlign textAlign = TextAlign.center,
})

Implementation

const SkTextButton({
  super.key,
  required this.label,
  this.textColor,
  required this.onTap,
  this.onLongPress,
  this.textStyle,
  this.isUnderlined = false,
  this.padding,
  this.focusNode,
  this.autofocus = false,
  this.mouseCursor,
  this.textAlign = TextAlign.center,
});