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