getColorOfRichText method

Color getColorOfRichText(
  1. int key
)

Implementation

Color getColorOfRichText(int key) {
  if (key == 0) return const Color.fromRGBO(227, 209, 238, 1.0);
  if (key == 1) return const Color.fromRGBO(193, 180, 201, 1.0);
  if (key == 2) return Colors.transparent;
  if (key == 4) return const Color.fromRGBO(17, 74, 159, 1.0);
  if (key == 8) return Colors.black;
  return Colors.white;
}