FLUTTER INTERVIEW QUESTIONS

What are const objects in Dart?

In one sentence - objects created with const keyword that are being instantiated during compile-time and reused over and over agin.

First Text is going to be created in compile-time and the same instance is going to be used each and every time UI is being rebuilt, and the second Text is a non-const object that is going to be recreated…