WidgetFactory constructor Null safety

WidgetFactory()