getColorByRating static method

List<Color> getColorByRating()

Implementation

static List<Color> getColorByRating() {
  return [
    Color(0xfff0323c), //For 0 star color
    Color(0xfff0323c), //For 1 star color
    Color(0xfff0323c).withAlpha(200), //For 2 star color
    Color(0xfff9c700), //For 3 star color
    Color(0xff3cd278).withAlpha(200), //For 4 star color
    Color(0xff3cd278) //For 5 star color
  ];
}