The Dart docs say that the 'new' operator is optional when instantiating an object from a class. It also says you can define a class to be a callable function by defining a Call() function within the class.
Given a class
Class MyClass
And i define both a constructor and Call() function within that class (neither of which has been defined to take any arguments)
what would the value of somevar be?
dynamic somevar = MyClass();
Would it be an instance of MyClass or would it be the return value of the Call() function?
https://stackguides.com/questions/1053592/what-is-the-difference-between-class-and-instance-methods#:~:text=Like%20the%20other%20answers%20have,instance%20in%20as%20a%20parameter).- Chandan