OneButtonViewModel constructor
const
OneButtonViewModel({
- OneButtonSize size = OneButtonSize.lg,
- OneButtonHierarchy hierarchy = OneButtonHierarchy.primary,
- String? text,
- TextAlign alignment = TextAlign.center,
- String? leadingSVG,
- String? leadingImage,
- dynamic leadingIcon,
- dynamic trailingIcon,
- bool isFocused = false,
- bool isLoading = false,
- bool isDisabled = false,
- bool isActive = false,
- dynamic onTap()?,
- bool fullWidth = false,
- 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,
});