Rating constructor

Rating({
  1. required String rating,
  2. required double percentage,
  3. required Color color,
})

Implementation

factory Rating(
    {required String rating,
    required double percentage,
    required Color color}) = _Rating;