ViamButton constructor

const ViamButton({
  1. required VoidCallback? onPressed,
  2. required String text,
  3. Key? key,
  4. IconData? icon,
  5. ViamButtonRole role = ViamButtonRole.primary,
  6. ViamButtonFillStyle style = ViamButtonFillStyle.filled,
  7. ViamButtonSizeClass size = ViamButtonSizeClass.medium,
  8. 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});