static Color withOpacity(Color color, double opacity) { return color.withAlpha((opacity * 255).round()); }