What is factory keyword in DART?

A factory function is a function that returns an instance of a class. Dart provides factory keyword to label a default or named constructor . Then it becomes our responsibility to return an instance from this constructor. A factor constructor is generally used to control the instance creation.7 Eki 2019

Sizin İçin Seçtik  What is the advantage of factory constructor?

Leave a Reply

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