How do you make a private constructor in darts?

A constructor can be made private by using (_) underscore operator which means private in dart. The same theory applied while extending class also, It’s also impossible to call the private constructor if it declares in a separate file. class FooBar extends Foo { FooBar() : super.

Sizin İçin Seçtik  How do I create a generic list in Dart?

Leave a Reply

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