What is use of factory in flutter?

Factory Method lets a class defer instantiation to subclasses . … When objects are created within the class, it is very inflexible since you cannot change the instantiation of the object independently from the class — the class is committed to a particular object.

Sizin İçin Seçtik  How do you create a function in darts?

Leave a Reply

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