buttonTheme method

ShadButtonTheme buttonTheme(
  1. ShadThemeData theme
)

Implementation

ShadButtonTheme buttonTheme(ShadThemeData theme) {
  return switch (variant) {
    ShadButtonVariant.primary => theme.primaryButtonTheme,
    ShadButtonVariant.destructive => theme.destructiveButtonTheme,
    ShadButtonVariant.secondary => theme.secondaryButtonTheme,
    ShadButtonVariant.ghost => theme.ghostButtonTheme,
    ShadButtonVariant.outline => theme.outlineButtonTheme,
    ShadButtonVariant.link => theme.linkButtonTheme,
  };
}