Declare a variable to store an object that is only constructed with a specific named constructor in dart

前端 未结 0 1147
离开以前
离开以前 2021-01-28 20:29
    class ExampleClass {
      //default constructor
      ExampleClass() {
        //do stuff
      }
      //named constructor
      ExampleClass.namedConstructor() {
         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题