TIcon.raw constructor
TIcon.raw(})
Creates a raw icon with no padding, background, shape, border radius, or container wrapping.
Acts as a direct drop-in replacement for Flutter's Icon with added support
for HugeIcons, custom Widgets, theme colors, and rotation turns.
Implementation
factory TIcon.raw(
dynamic icon, {
Key? key,
double size = 16,
Color? color,
Color? activeColor,
Color? hoverColor,
dynamic activeIcon,
bool active = false,
(double initial, double active)? turns,
int animationMilliseconds = 200,
VoidCallback? onTap,
TThemeType? themeType,
}) {
return TIcon(
key: key,
icon: icon,
size: size,
padding: EdgeInsets.zero,
color: color,
activeColor: activeColor,
hoverColor: hoverColor,
activeIcon: activeIcon,
active: active,
turns: turns,
animationMilliseconds: animationMilliseconds,
onTap: onTap,
background: null,
borderRadius: null,
shadow: null,
themeType: themeType,
);
}