delete static method

DraftModeUIButton delete({
  1. String label = 'Delete',
  2. Key? key,
  3. Widget? pendingChild,
  4. bool isPending = false,
  5. VoidCallback? onPressed,
  6. DraftModeUIButtonSize size = DraftModeUIButtonSize.large,
  7. Color? backgroundColor,
  8. Color? textColor,
  9. bool stretched = true,
  10. EdgeInsetsGeometry? padding,
  11. 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,
  );
}