GlossButton.text constructor

const GlossButton.text(
  1. String label, {
  2. Key? key,
  3. required VoidCallback? onPressed,
  4. Widget? icon,
  5. bool isDestructiveAction = false,
  6. GlossStyle? style,
  7. FocusNode? focusNode,
  8. bool autofocus = false,
  9. VoidCallback? onLongPress,
})

Letterpressed words with no key: the least action, a link-like one, and a destructive one where it lives. Its words stand on the keyline; its tap target reaches round them.

Implementation

const GlossButton.text(
  this.label, {
  super.key,
  required this.onPressed,
  this.icon,
  this.isDestructiveAction = false,
  this.style,
  this.focusNode,
  this.autofocus = false,
  this.onLongPress,
}) : _kind = GlossKeyKind.text;