ExampleFactory constructor Null safety

ExampleFactory()