Status constructor

Status({
  1. String? state,
  2. String? reason,
})

Constructor for creating a Status object.

The constructor initializes a Status object with optional named parameters:

  • state: The state attribute value of the status.
  • reason: The reason attribute value of the status.

Implementation

Status({
  this.state,
  this.reason,
});