delete static method
DraftModeUIButton
delete({
- String label = 'Delete',
- 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,
Delete button — destructive variant with a trash icon.
Implementation
static DraftModeUIButton delete({
String label = 'Delete',
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.label(
label,
icon: DraftModeUIButtons.trash,
key: key,
pendingChild: pendingChild,
isPending: isPending,
onPressed: onPressed,
size: size,
variant: DraftModeUIButtonVariant.destructive,
backgroundColor: backgroundColor,
textColor: textColor,
stretched: stretched,
padding: padding,
autoPending: autoPending,
);
}