Can someone explain, what the advantages of constant constructors are? If I have a StatefulWidget
class X extends StatefulWidget {
const X(this.a, this.b,...);
A a;
B b;
...
}
I do not understand why const is used. If I understand correctly, const means it is known at compile time, but what is it for? Usually the attributes a, b, etc. are not known at compile time, but at runtime, so what is the point for the const constructor?