Is it possible to have a private constructor in dart?

后端 未结 2 957
清歌不尽
清歌不尽 2021-02-06 22:01

I\'m able to do something like the following in TypeScript

class Foo {
  private constructor () {}
}

so this constructor is access

2条回答
提交回复
热议问题