Health constructor Null safety

const Health(
  1. HealthStatus status
)

Creates a Health object with the given status.

Implementation

const Health(this.status)
  : assert(status != null);