= TimeOfDay(hour: 9, minute: 0);
final newTime = await showTimePicker(
context: context,
initialTime: time!.value ?? initialTime, // exception
);
if (newTime == null) return;
time!.value = newTime;
print("SEÇİLEN SAAT => ${time!.value}");
} I get null check operator null value error in the part where I write exception in this method. What I want to do is choose a clock
Change to: initialTime: time?.value ?? initialTime,
Обсуждают сегодня