Provide "setThemeVariants" for HasThemeVariant #6887
Labels
DX
Developer experience issue
enhancement
New feature or request
good first issue
Good for newcomers
Describe your motivation
This is a pure dx improvement / core readability request.
Both use cases add unnecessary overhead and at least the 1 case is not really intuitive.
Describe the solution you'd like
Please provide a
setThemeVariants
method similar to thesetThemeName(String, boolean)
variant,something like
setThemeVariants(Variants...)
(use case 1) andsetThemeVariants(boolean , Variants...)
(use case 2).Describe alternatives you've considered
See the snippets.
Additional context
No response
The text was updated successfully, but these errors were encountered: