Is it possible to create a constructor with arguments on a JavaFX class?
This can be achieved in Java by:
MyObj(String foo, String bar) {
// ...
}
Is this possible in JavaFX?
i.e.
// creating an Object Literal without the specified arguments must result in compile error
var myObj = MyObj {} ;
// While this should not result in compile error
var myObj2 = MyObj {foo: "foo", bar: "bar"};