cell_color.dart 346 B

123456789101112
  1. class CellColor {
  2. const CellColor(this.value);
  3. const CellColor.empty() : value = 0xFF000000;
  4. const CellColor.fromARGB(int a, int r, int g, int b)
  5. : value = (((a & 0xff) << 24) |
  6. ((r & 0xff) << 16) |
  7. ((g & 0xff) << 8) |
  8. ((b & 0xff) << 0)) &
  9. 0xFFFFFFFF;
  10. final int value;
  11. }