VariedIcon extension

Extension to Icon that creates icons are varied by any defaults you have set using MaterialSymbolsBase.setOutlinedVariationDefaults, MaterialSymbolsBase.setRoundedVariationDefaults or MaterialSymbolsBase.setSharpVariationDefaults first and then using the IconTheme's IconThemeData secondarily. This allows different variation defaults for regular, rounded and sharp versions of the Material Symbols icons.

on

Static Methods

varied(IconData icon, {Key? key, double? size, double? fill, double? weight, double? grade, double? opticalSize, Color? color, List<Shadow>? shadows, String? semanticLabel, TextDirection? textDirection}) Icon
Creates an icon using any default variations defined for the icon's fontFamily (If the icon's IconData.fontFamily is not found in the MaterialSymbolsBase.globalIconVariationDefaults map then the normal Icon() behavior of using the IconTheme's IconThemeData infornation for any missing attributes.