79524684

Date: 2025-03-21 06:29:24
Score: 1
Natty:
Report link
import 'dart:ui';

int colorToInt(Color color) {
  int a = (color.a * 255).toInt();
  int r = (color.r * 255).toInt();
  int g = (color.g * 255).toInt();
  int b = (color.b * 255).toInt();

  return (a << 24) | (r << 16) | (g << 8) | b;
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: holywater