TextButton constructor

const TextButton({
  1. Key? key,
  2. required VoidCallback? onPressed,
  3. VoidCallback? onLongPress,
  4. ValueChanged<bool>? onHover,
  5. ValueChanged<bool>? onFocusChange,
  6. ButtonStyle? style,
  7. FocusNode? focusNode,
  8. bool autofocus = false,
  9. Clip? clipBehavior,
  10. MaterialStatesController? statesController,
  11. bool? isSemanticButton = true,
  12. required Widget child,
  13. IconAlignment iconAlignment = IconAlignment.start,
})

Create a TextButton.

Implementation

const TextButton({
  super.key,
  required super.onPressed,
  super.onLongPress,
  super.onHover,
  super.onFocusChange,
  super.style,
  super.focusNode,
  super.autofocus = false,
  super.clipBehavior,
  super.statesController,
  super.isSemanticButton,
  required Widget super.child,
  super.iconAlignment,
});