OneButtonViewModel constructor

const OneButtonViewModel({
  1. OneButtonSize size = OneButtonSize.lg,
  2. OneButtonHierarchy hierarchy = OneButtonHierarchy.primary,
  3. String? text,
  4. TextAlign alignment = TextAlign.center,
  5. String? leadingSVG,
  6. String? leadingImage,
  7. dynamic leadingIcon,
  8. dynamic trailingIcon,
  9. bool isFocused = false,
  10. bool isLoading = false,
  11. bool isDisabled = false,
  12. bool isActive = false,
  13. dynamic onTap()?,
  14. bool fullWidth = false,
  15. bool textFullWidth = false,
})

Implementation

const OneButtonViewModel({
  this.size = OneButtonSize.lg,
  this.hierarchy = OneButtonHierarchy.primary,
  this.text,
  this.alignment = TextAlign.center,
  this.leadingSVG,
  this.leadingImage,
  this.leadingIcon,
  this.trailingIcon,
  this.isFocused = false,
  this.isLoading = false,
  this.isDisabled = false,
  this.isActive = false,
  this.onTap,
  this.fullWidth = false,
  this.textFullWidth = false,
});