colorFromIntRGBA function
Implementation
ui.Color colorFromIntRGBA(int uint32Rgba) {
// Extract RGBA components
int r = (uint32Rgba >> 24) & 0xFF;
int g = (uint32Rgba >> 16) & 0xFF;
int b = (uint32Rgba >> 8) & 0xFF;
int a = uint32Rgba & 0xFF;
// Convert to ARGB format and create a Color object
return ui.Color.fromARGB(a, r, g, b);
}