I'm stunned by your comprehensiveness, I could not find so minute details explained about every topic and keyword elsewhere. You're a dart documentation in a human form.
Thank You so much for giving a real world example of what, to the newbie, is a complex subject. Many videos deal in the abstract that may show you what to do but miss out the why you’d want to do something.
EXCELLENT tutorial; content thoroughly covered by good teacher! Thinking his ‘Flutter Course’ and ‘Dart Basic’ playlists look really good … and very current.
Thanks. It wasnt’ till the end of the tutorial that I understood what returning a sub-class instance of a class instead of the class itself meant. It was a light-bulb moment
First of all thank you for your effort I have a question, why declaring city and object variables out of the if statement but still inside for in loop give me an error
Johan, I have been watching all your videos on your Dart and trying to practice also. At times, I need to refer back to previous video and code snippets. Is there is a gist or git that I can refer for all the code that was covered in the video tutorials. Thanks a bunch
print(reading) basically calls toString method of the Reading and it's subclasses. This method returns a string. Since any object inherits Object class, you can override this method to return a custom string, as shown in the video. If you don't override it then it will print 'Instance of Reading' or 'Instance of Temperature' or 'Instance of Pressure' depending on the object type basically 'Instance of ' . tldr: print() method in the last for loop calls toString method of the readings, which prints the strings returned by the overridden toString methods of these readings.