setSolar method Null safety

void setSolar(
  1. Solar solar
)

Implementation

void setSolar(Solar solar) {
  _solar = solar;
}