GlossButton.text constructor
const
GlossButton.text(
- String label, {
- Key? key,
- required VoidCallback? onPressed,
- Widget? icon,
- bool isDestructiveAction = false,
- GlossStyle? style,
- FocusNode? focusNode,
- bool autofocus = false,
- 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;