flutter: Expected a value of type ‘String’, but got one of type ‘Null’
I am trying to create a program to display the time. When I try to display the time using a Text widget flutter throws an exception “Expected a value of type ‘String’, but got one of type ‘Null'”
I have the following dart files-:
1. main.dart