OneDestructiveButton constructor

const OneDestructiveButton({
  1. Key? key,
  2. OneButtonSize size = OneButtonSize.lg,
  3. OneButtonDestructiveHierarchy hierarchy = OneButtonDestructiveHierarchy.primary,
  4. String? text,
  5. dynamic leadingIcon,
  6. dynamic trailingIcon,
  7. bool isLoading = false,
  8. bool isDisabled = false,
  9. dynamic onTap()?,
  10. 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,
});