DraftModeUIButton.icon constructor
DraftModeUIButton.icon(
- IconData icon, {
- Key? key,
- Widget? pendingChild,
- bool isPending = false,
- VoidCallback? onPressed,
- DraftModeUIButtonSize size = DraftModeUIButtonSize.medium,
- DraftModeUIButtonVariant variant = DraftModeUIButtonVariant.plain,
- Color? backgroundColor,
- Color? textColor,
- bool stretched = false,
- EdgeInsetsGeometry? padding,
- bool autoPending = false,
Creates an icon-only button. Defaults to DraftModeUIButtonVariant.plain
and stretched false.
Implementation
factory DraftModeUIButton.icon(
IconData icon, {
Key? key,
Widget? pendingChild,
bool isPending = false,
VoidCallback? onPressed,
DraftModeUIButtonSize size = DraftModeUIButtonSize.medium,
DraftModeUIButtonVariant variant = DraftModeUIButtonVariant.plain,
Color? backgroundColor,
Color? textColor,
bool stretched = false,
EdgeInsetsGeometry? padding,
bool autoPending = false,
}) {
return _DraftModeUIButtonIcon(
key: key,
icon: icon,
pendingChild: pendingChild,
isPending: isPending,
onPressed: onPressed,
size: size,
variant: variant,
backgroundColor: backgroundColor,
textColor: textColor,
stretched: stretched,
padding: padding,
autoPending: autoPending,
);
}