buildIcon method
Builds the icon for the tile.
@param isActive - True if the tile is active.
@param size - The size of the icon.
@param color - The color of the icon.
@return The icon widget.
Implementation
@override
Widget? buildIcon(bool isActive, double? size, Color? color) {
if (icon == null) return super.buildIcon(isActive, size, color);
return Icon(icon!.call(isActive), size: size, color: color);
}