cancel static method
DraftModeUIButton
cancel({
- String label = 'Cancel',
- Key? key,
- Widget? pendingChild,
- bool isPending = false,
- VoidCallback? onPressed,
- DraftModeUIButtonSize size = DraftModeUIButtonSize.large,
- Color? backgroundColor,
- Color? textColor,
- bool stretched = true,
- EdgeInsetsGeometry? padding,
- bool autoPending = false,
Cancel button — plain variant, text only (iOS convention).
Implementation
static DraftModeUIButton cancel({
String label = 'Cancel',
Key? key,
Widget? pendingChild,
bool isPending = false,
VoidCallback? onPressed,
DraftModeUIButtonSize size = DraftModeUIButtonSize.large,
Color? backgroundColor,
Color? textColor,
bool stretched = true,
EdgeInsetsGeometry? padding,
bool autoPending = false,
}) {
return DraftModeUIButton.text(
label,
key: key,
pendingChild: pendingChild,
isPending: isPending,
onPressed: onPressed,
size: size,
variant: DraftModeUIButtonVariant.plain,
backgroundColor: backgroundColor,
textColor: textColor,
stretched: stretched,
padding: padding,
autoPending: autoPending,
);
}