terminal_color.dart 364 B

1234567891011121314
  1. class TerminalColor {
  2. const TerminalColor(this.value);
  3. const TerminalColor.empty() : value = 0xFF000000;
  4. const TerminalColor.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. }