setLogger function Null safety

void setLogger(
  1. BaseLogger logger
)

Implementation

void setLogger(BaseLogger logger) => _logger = logger;