TIcon constructor

const TIcon({
  1. Key? key,
  2. required IconData icon,
  3. VoidCallback? onTap,
  4. double size = 16,
  5. bool active = false,
  6. EdgeInsets padding = const EdgeInsets.all(6),
  7. (double, double)? turns,
  8. int animationMilliseconds = 200,
  9. Color? color,
  10. IconData? activeIcon,
  11. Color? activeColor,
  12. Color? hoverColor,
  13. BoxShape shape = BoxShape.rectangle,
  14. Color? background,
  15. 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)),
});