TIcon.raw constructor

TIcon.raw(
  1. dynamic icon, {
  2. Key? key,
  3. double size = 16,
  4. Color? color,
  5. Color? activeColor,
  6. Color? hoverColor,
  7. dynamic activeIcon,
  8. bool active = false,
  9. (double, double)? turns,
  10. int animationMilliseconds = 200,
  11. VoidCallback? onTap,
  12. TThemeType? themeType,
})

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,
  );
}