Why do we use factory constructor in flutter?

A normal constructor always returns a new instance of the class. A factory constructor is permitted to return an existing instance, an instance of a derived class, or null .

Sizin İçin Seçtik  How do you make a function parameter optional in flutter?

Leave a Reply

Your email address will not be published. Required fields are marked *