TIcon constructor
const
TIcon({})
A custom icon button widget with configurable shape and background color.
iconis the required icon to display.widthandheightdefine the size of the container.sizespecifies the size of the icon inside the container (default: 18.0).colorsets the color of the icon.backgroundColorsets the background color of the container.onPresseddefines the callback when the icon is pressed.borderRadiusallows custom shaping of the container (default: circular).
Implementation
const TIcon({
super.key,
required this.icon,
this.width,
this.height,
this.size,
this.onPressed,
this.color,
this.backgroundColor,
this.tooltip,
this.borderRadius = 100.0,
});