Season constructor

Season({
  1. String? name,
  2. int? value,
})

Constructor for creating a Season object.

The constructor initializes a Season object with optional named parameters:

  • name: The name attribute value of the season.
  • value: The value of the season.

Implementation

Season({
  this.name,
  this.value,
});