ViamButton constructor
- required VoidCallback? onPressed,
- required String text,
- Key? key,
- IconData? icon,
- ViamButtonRole role = ViamButtonRole.primary,
- ViamButtonFillStyle style = ViamButtonFillStyle.filled,
- ViamButtonSizeClass size = ViamButtonSizeClass.medium,
- ViamButtonVariant variant = ViamButtonVariant.iconLeading,
Implementation
const ViamButton(
{required this.onPressed,
required this.text,
super.key,
this.icon,
this.role = ViamButtonRole.primary,
this.style = ViamButtonFillStyle.filled,
this.size = ViamButtonSizeClass.medium,
this.variant = ViamButtonVariant.iconLeading});