You can only have one unnamed constructor, but you can have any number of additional named constructors in Flutter . By using named constructor you can create multiple constructors in the same class.
Does Dart support multiple constructors?
You can only have one unnamed constructor, but you can have any number of additional named constructors in Flutter . By using named constructor you can create multiple constructors in the same class.