TIcon constructor
const
TIcon({
- Key? key,
- required IconData icon,
- VoidCallback? onTap,
- double size = 16,
- bool active = false,
- EdgeInsets padding = const EdgeInsets.all(6),
- (double, double)? turns,
- int animationMilliseconds = 200,
- Color? color,
- IconData? activeIcon,
- Color? activeColor,
- Color? hoverColor,
- BoxShape shape = BoxShape.rectangle,
- Color? background,
- BorderRadius? borderRadius = const BorderRadius.all(Radius.circular(10)),
Creates an icon.
Implementation
const TIcon({
super.key,
required this.icon,
this.onTap,
this.size = 16,
this.active = false,
this.padding = const EdgeInsets.all(6),
this.turns,
this.animationMilliseconds = 200,
this.color,
this.activeIcon,
this.activeColor,
this.hoverColor,
this.shape = BoxShape.rectangle,
this.background,
this.borderRadius = const BorderRadius.all(Radius.circular(10)),
});