Search⌘ K
AI Features

Exercise: Smart Thermostat Configuration

Explore how to define and use a Dart function named configureThermostat with required and optional named parameters. Learn to handle default values and nullable types by printing the target temperature, fan mode, and optionally the schedule if provided. This lesson improves your understanding of function parameters, null safety, and conditional logic in Dart.

Problem statement

A ...