setType method Null safety

void setType(
  1. String type
)

Implementation

void setType(String type) {
    this.type = type;
}