Rating constructor

Rating({
  1. String? scheme,
  2. String? value,
})

Constructor for creating a Rating object.

The constructor initializes a Rating object with optional named parameters:

  • scheme: The scheme attribute value of the rating.
  • value: The value of the rating.

Implementation

Rating({
  this.scheme,
  this.value,
});