OneDestructiveButton constructor
const
OneDestructiveButton({
- Key? key,
- OneButtonSize size = OneButtonSize.lg,
- OneButtonDestructiveHierarchy hierarchy = OneButtonDestructiveHierarchy.primary,
- String? text,
- dynamic leadingIcon,
- dynamic trailingIcon,
- bool isLoading = false,
- bool isDisabled = false,
- dynamic onTap()?,
- bool fullWidth = false,
Implementation
const OneDestructiveButton({
super.key,
this.size = OneButtonSize.lg,
this.hierarchy = OneButtonDestructiveHierarchy.primary,
this.text,
this.leadingIcon,
this.trailingIcon,
this.isLoading = false,
this.isDisabled = false,
this.onTap,
this.fullWidth = false,
});